Update github.com/kurin/blazer

This commit is contained in:
Alexander Neumann 2018-05-08 22:33:55 +02:00
parent 8943741a0b
commit 024148cac9
13 changed files with 902 additions and 48 deletions

View file

@ -37,6 +37,7 @@ type beRootInterface interface {
type beRoot struct {
account, key string
b2i b2RootInterface
options []ClientOption
}
type beBucketInterface interface {
@ -156,13 +157,14 @@ func (r *beRoot) authorizeAccount(ctx context.Context, account, key string, opts
}
r.account = account
r.key = key
r.options = opts
return nil
}
return withBackoff(ctx, r, f)
}
func (r *beRoot) reauthorizeAccount(ctx context.Context) error {
return r.authorizeAccount(ctx, r.account, r.key)
return r.authorizeAccount(ctx, r.account, r.key, r.options...)
}
func (r *beRoot) createBucket(ctx context.Context, name, btype string, info map[string]string, rules []LifecycleRule) (beBucketInterface, error) {