Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Download(bucketName, objectKey, dest string) error
- func (c *Client) ListFiles(bucketName, prefix string, recursive bool) ([]string, error)
- func (c *Client) RemoveFiles(bucketName string, prefixList []string)
- func (c *Client) Upload(bucketName, src string, objectKey string) error
- func (c *Client) ValidateBucket(bucketName string) error
Constants ¶
View Source
const (
DefaultRegion = "ap-shanghai"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) RemoveFiles ¶
RemoveFiles removes the files with a specific list of prefixes and delete ALL of them for NOW, if an error is encountered, nothing will happen except for a line of error log.
func (*Client) ValidateBucket ¶
Validate the existence of bucket
Click to show internal directories.
Click to hide internal directories.