buckets

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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) Create

func (b *Buckets) Create(ctx context.Context, createParam model.Bucket) (*model.Bucket, error)

Create implements 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

func (b *Buckets) DeleteQuota(ctx context.Context, bucketName string, namespace string) error

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) List

func (b *Buckets) List(ctx context.Context, params map[string]string) (*model.BucketList, error)

List implements the buckets interface.

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

func (b *Buckets) UpdateQuota(ctx context.Context, bucketQuota model.BucketQuotaUpdate) error

UpdateQuota updates the quota for the specified bucket.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL