Documentation ¶
Index ¶
- type Client
- func (client *Client) DeleteObjects(ctx context.Context, bucket string, keys []string) error
- func (client *Client) GetObject(ctx context.Context, bucket, key string) (*Object, error)
- func (client *Client) GetPresignedGetURL(ctx context.Context, bucket, key string, expires time.Duration) (string, error)
- func (client *Client) GetPresignedPutURL(ctx context.Context, bucket, key string, expires time.Duration) (string, error)
- func (client *Client) ListObjects(ctx context.Context, bucket string, opts ...ListObjectsOption) ([]ObjectMetaData, error)
- func (client *Client) PutObject(ctx context.Context, bucket, key string, body io.ReadSeeker, size int64) error
- type ListObjectsOption
- type Object
- type ObjectMetaData
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) DeleteObjects ¶
func (*Client) GetPresignedGetURL ¶
func (*Client) GetPresignedPutURL ¶
func (*Client) ListObjects ¶
func (client *Client) ListObjects(ctx context.Context, bucket string, opts ...ListObjectsOption) ([]ObjectMetaData, error)
type ListObjectsOption ¶
type ListObjectsOption func(*s3.ListObjectsV2Input)
func WithPrefix ¶
func WithPrefix(prefix string) ListObjectsOption
type Object ¶
type Object struct { Size int64 Body io.ReadCloser }
type ObjectMetaData ¶
Click to show internal directories.
Click to hide internal directories.