Documentation
¶
Index ¶
- type Client
- func (c *Client) CopyFile(ctx context.Context, input *s3.CopyObjectInput) (*s3.CopyObjectOutput, error)
- func (c *Client) DeleteFile(ctx context.Context, input *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)
- func (c *Client) FileExists(ctx context.Context, input *s3.HeadObjectInput) (bool, error)
- func (c *Client) GetPrivateURL(ctx context.Context, input *s3.GetObjectInput) (string, error)
- func (c *Client) ListBuckets(ctx context.Context) ([]types.Bucket, error)
- func (c *Client) ListFiles(ctx context.Context, input *s3.ListObjectsInput) (*s3.ListObjectsOutput, error)
- func (c *Client) PresignPostObject(ctx context.Context, input *s3.PutObjectInput, expires time.Duration, ...) (*PresignedPostForm, error)
- func (c *Client) PresignPutObject(ctx context.Context, input *s3.PutObjectInput, expires time.Duration) (*PresignedRequest, error)
- func (c *Client) UploadFile(ctx context.Context, input *s3.PutObjectInput) (*s3.PutObjectOutput, error)
- type Config
- type PresignedPostForm
- type PresignedRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Region string
Bucket string
AccessKeyID string
URL string
// contains filtered or unexported fields
}
Client contains the DO configuration and methods
func (*Client) CopyFile ¶ added in v1.6.7
func (c *Client) CopyFile(ctx context.Context, input *s3.CopyObjectInput) (*s3.CopyObjectOutput, error)
func (*Client) DeleteFile ¶
func (c *Client) DeleteFile(ctx context.Context, input *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)
func (*Client) FileExists ¶
func (*Client) GetPrivateURL ¶
func (*Client) ListBuckets ¶
func (*Client) ListFiles ¶
func (c *Client) ListFiles(ctx context.Context, input *s3.ListObjectsInput) (*s3.ListObjectsOutput, error)
func (*Client) PresignPostObject ¶ added in v1.7.0
func (c *Client) PresignPostObject(ctx context.Context, input *s3.PutObjectInput, expires time.Duration, conditions ...interface{}) (*PresignedPostForm, error)
func (*Client) PresignPutObject ¶ added in v1.7.0
func (c *Client) PresignPutObject(ctx context.Context, input *s3.PutObjectInput, expires time.Duration) (*PresignedRequest, error)
func (*Client) UploadFile ¶
func (c *Client) UploadFile(ctx context.Context, input *s3.PutObjectInput) (*s3.PutObjectOutput, error)
type PresignedPostForm ¶ added in v1.7.0
Click to show internal directories.
Click to hide internal directories.