Documentation ¶
Index ¶
- type Buckets
- func (b *Buckets) Create(ctx context.Context, createParam model.Bucket) (*model.Bucket, error)
- func (b *Buckets) Delete(ctx context.Context, name string, namespace string, emptyBucket bool) error
- func (b *Buckets) DeletePolicy(ctx context.Context, bucketName string, param map[string]string) error
- func (b *Buckets) DeleteQuota(ctx context.Context, bucketName string, namespace string) error
- func (b *Buckets) Get(ctx context.Context, name string, params map[string]string) (*model.Bucket, error)
- func (b *Buckets) GetPolicy(ctx context.Context, bucketName string, param map[string]string) (string, error)
- func (b *Buckets) GetQuota(ctx context.Context, bucketName string, namespace string) (*model.BucketQuotaInfo, error)
- func (b *Buckets) List(ctx context.Context, params map[string]string) (*model.BucketList, error)
- func (b *Buckets) UpdatePolicy(ctx context.Context, bucketName string, policy string, param map[string]string) error
- func (b *Buckets) UpdateQuota(ctx context.Context, bucketQuota model.BucketQuotaUpdate) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buckets ¶
type Buckets struct {
Client client.RemoteCaller
}
Buckets is a REST implementation of the Buckets interface.
func (*Buckets) Delete ¶
func (b *Buckets) Delete(ctx context.Context, name string, namespace string, emptyBucket bool) error
Delete implements the buckets interface.
func (*Buckets) DeletePolicy ¶
func (b *Buckets) DeletePolicy(ctx context.Context, bucketName string, param map[string]string) error
DeletePolicy implements the buckets interface.
func (*Buckets) DeleteQuota ¶
DeleteQuota deletes the quota setting for the given bucket and namespace.
func (*Buckets) Get ¶
func (b *Buckets) Get(ctx context.Context, name string, params map[string]string) (*model.Bucket, error)
Get implements the buckets interface.
func (*Buckets) GetPolicy ¶
func (b *Buckets) GetPolicy(ctx context.Context, bucketName string, param map[string]string) (string, error)
GetPolicy implements the buckets interface.
func (*Buckets) GetQuota ¶
func (b *Buckets) GetQuota(ctx context.Context, bucketName string, namespace string) (*model.BucketQuotaInfo, error)
GetQuota gets the quota for the given bucket and namespace.
func (*Buckets) UpdatePolicy ¶
func (b *Buckets) UpdatePolicy(ctx context.Context, bucketName string, policy string, param map[string]string) error
UpdatePolicy implements the buckets interface.
func (*Buckets) UpdateQuota ¶
UpdateQuota updates the quota for the specified bucket.
Click to show internal directories.
Click to hide internal directories.