Documentation ¶
Index ¶
- type BucketStore
- func (store *BucketStore) Create(ctx context.Context, bucket storj.Bucket) (_ storj.Bucket, err error)
- func (store *BucketStore) Delete(ctx context.Context, bucketName string) (err error)
- func (store *BucketStore) Get(ctx context.Context, bucketName string) (_ storj.Bucket, err error)
- func (store *BucketStore) List(ctx context.Context, listOpts storj.BucketListOptions) (_ storj.BucketList, err error)
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketStore ¶
type BucketStore struct {
// contains filtered or unexported fields
}
BucketStore is an object to interact with buckets via the metainfo client
func NewStore ¶
func NewStore(metainfoClient metainfo.Client) *BucketStore
NewStore creates a new bucket store
func (*BucketStore) Create ¶
func (store *BucketStore) Create(ctx context.Context, bucket storj.Bucket) (_ storj.Bucket, err error)
Create creates a bucket
func (*BucketStore) Delete ¶
func (store *BucketStore) Delete(ctx context.Context, bucketName string) (err error)
Delete deletes a bucket
func (*BucketStore) List ¶
func (store *BucketStore) List(ctx context.Context, listOpts storj.BucketListOptions) (_ storj.BucketList, err error)
List returns a list of buckets
type Store ¶
type Store interface { Create(ctx context.Context, bucket storj.Bucket) (_ storj.Bucket, err error) Get(ctx context.Context, bucketName string) (_ storj.Bucket, err error) Delete(ctx context.Context, bucketName string) (err error) List(ctx context.Context, listOpts storj.BucketListOptions) (_ storj.BucketList, err error) }
Store for buckets
Click to show internal directories.
Click to hide internal directories.