Documentation
¶
Index ¶
- type Client
- func (c *Client) CopyFiles(copyKeys, destKeys []string, srcBucket, destBucket string, force bool) error
- func (c Client) Delete(bucket, key string) error
- func (c *Client) GetTimestampSignUrl(urlPath url.URL, secretKey string, expiration time.Duration) string
- func (c Client) GetUploadToken(putPolicy storage.PutPolicy, bucket string) string
- func (c *Client) ListFiles(bucket, prefix, delimiter, marker string, limit int) ([]storage.ListItem, []string, string, bool, error)
- func (c *Client) MakePublicUrl(domain, key string) string
- func (c *Client) MoveFiles(moveKeys []string, srcBucket, destBucket string, force bool) error
- func (c Client) PutFile(ctx context.Context, bucket, key string, data []byte) error
- func (c Client) RefreshUrls(urlsToRefresh []string) error
- type SmsClient
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) CopyFiles ¶ added in v0.0.10
func (c *Client) CopyFiles(copyKeys, destKeys []string, srcBucket, destBucket string, force bool) error
CopyFiles 复制文件
func (*Client) GetTimestampSignUrl ¶ added in v0.0.14
func (Client) GetUploadToken ¶
func (*Client) ListFiles ¶ added in v0.0.10
func (c *Client) ListFiles(bucket, prefix, delimiter, marker string, limit int) ([]storage.ListItem, []string, string, bool, error)
ListFiles 列举文件,每次最大1000
func (*Client) MakePublicUrl ¶ added in v0.0.10
MakePublicUrl 公开空间访问链接
func (Client) RefreshUrls ¶
type SmsClient ¶
type SmsClient struct {
// contains filtered or unexported fields
}
func NewSmsClient ¶
Click to show internal directories.
Click to hide internal directories.