Documentation
¶
Index ¶
- func NewUploader(opts ...Opt) *uploader
- type Client
- func (c *Client) CreateBucket(ctx context.Context, bucket schema.BucketMeta) (*schema.Bucket, error)
- func (c *Client) CreateObjects(ctx context.Context, bucket, path string, opts ...Opt) (*schema.ObjectList, error)
- func (c *Client) DeleteBucket(ctx context.Context, bucket string) error
- func (c *Client) DeleteObject(ctx context.Context, bucket, key string) error
- func (c *Client) GetBucket(ctx context.Context, bucket string) (*schema.Bucket, error)
- func (c *Client) GetObject(ctx context.Context, bucket, key string) (*schema.Object, error)
- func (c *Client) ListBuckets(ctx context.Context) ([]schema.Bucket, error)
- func (c *Client) ListObjects(ctx context.Context, bucket string, opts ...Opt) ([]schema.Object, error)
- type Opt
- type ProgressFunc
- type Uploader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUploader ¶
func NewUploader(opts ...Opt) *uploader
Types ¶
type Client ¶
func (*Client) CreateBucket ¶
func (*Client) CreateObjects ¶
func (c *Client) CreateObjects(ctx context.Context, bucket, path string, opts ...Opt) (*schema.ObjectList, error)
Create objects from a file or directory
func (*Client) DeleteBucket ¶
func (*Client) DeleteObject ¶
func (*Client) ListBuckets ¶
Click to show internal directories.
Click to hide internal directories.