Documentation ¶
Index ¶
- type Client
- func (c *Client) DeleteFile(input *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)
- func (c *Client) FileExists(input *s3.HeadObjectInput) (bool, error)
- func (c *Client) GetPrivateURL(input *s3.GetObjectInput) (string, error)
- func (c *Client) ListBuckets() ([]*s3.Bucket, error)
- func (c *Client) ListFiles(input *s3.ListObjectsInput) (*s3.ListObjectsOutput, error)
- func (c *Client) UploadFile(input *s3.PutObjectInput) (*s3.PutObjectOutput, error)
- type Config
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) DeleteFile ¶
func (c *Client) DeleteFile(input *s3.DeleteObjectInput) (*s3.DeleteObjectOutput, error)
func (*Client) FileExists ¶
func (c *Client) FileExists(input *s3.HeadObjectInput) (bool, error)
func (*Client) GetPrivateURL ¶
func (c *Client) GetPrivateURL(input *s3.GetObjectInput) (string, error)
func (*Client) ListFiles ¶
func (c *Client) ListFiles(input *s3.ListObjectsInput) (*s3.ListObjectsOutput, error)
func (*Client) UploadFile ¶
func (c *Client) UploadFile(input *s3.PutObjectInput) (*s3.PutObjectOutput, error)
Click to show internal directories.
Click to hide internal directories.