Documentation
¶
Index ¶
- type Client
- func (c *Client) BucketExists(ctx context.Context, name string) (bool, error)
- func (c *Client) CopyObject(ctx context.Context, srcBucket, srcKey, dstBucket, dstKey string) error
- func (c *Client) CreateBucket(ctx context.Context, name string) error
- func (c *Client) DeleteBucket(ctx context.Context, name string) error
- func (c *Client) DeleteObject(ctx context.Context, bucket, key string) error
- func (c *Client) DeleteObjects(ctx context.Context, bucket string, keys []string) error
- func (c *Client) DownloadFile(ctx context.Context, bucket, key, localPath string) error
- func (c *Client) EmptyBucket(ctx context.Context, bucket string) error
- func (c *Client) GetObject(ctx context.Context, bucket, key string) (io.ReadCloser, error)
- func (c *Client) GetObjectBytes(ctx context.Context, bucket, key string) ([]byte, error)
- func (c *Client) ListBuckets(ctx context.Context) ([]string, error)
- func (c *Client) ListObjects(ctx context.Context, bucket, prefix string) ([]string, error)
- func (c *Client) MoveObject(ctx context.Context, bucket, srcKey, dstKey string) error
- func (c *Client) ObjectExists(ctx context.Context, bucket, key string) (bool, error)
- func (c *Client) PresignGetObject(ctx context.Context, bucket, key string, expiry time.Duration) (string, error)
- func (c *Client) PresignPutObject(ctx context.Context, bucket, key string, expiry time.Duration) (string, error)
- func (c *Client) PutObject(ctx context.Context, bucket, key string, body io.Reader, contentType string) error
- func (c *Client) PutObjectBytes(ctx context.Context, bucket, key string, data []byte, contentType string) error
- func (c *Client) UploadFile(ctx context.Context, bucket, key, localPath string) error
- func (c *Client) WaitBucketExists(ctx context.Context, name string, timeout time.Duration) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BucketExists ¶
func (*Client) CopyObject ¶
func (*Client) DeleteObject ¶
func (*Client) DeleteObjects ¶
func (*Client) DownloadFile ¶
func (*Client) GetObjectBytes ¶
func (*Client) ListObjects ¶
func (*Client) MoveObject ¶
func (*Client) ObjectExists ¶
func (*Client) PresignGetObject ¶
func (*Client) PresignPutObject ¶
func (*Client) PutObjectBytes ¶
func (*Client) UploadFile ¶
Click to show internal directories.
Click to hide internal directories.