buckets

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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

func (store *BucketStore) Get(ctx context.Context, bucketName string) (_ storj.Bucket, err error)

Get returns 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

Jump to

Keyboard shortcuts

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