Documentation
¶
Index ¶
- type Client
- func (c *Client) DeleteObject(objectKey string) error
- func (c *Client) DeleteObjects(objectKeys []string) error
- func (c Client) GetBucket() string
- func (c Client) GetEndpoint() string
- func (c *Client) GetObject(objectKey string) (io.ReadCloser, error)
- func (c *Client) GetObjectToFile(objectKey string, filePath string) error
- func (c *Client) GetObjectURL(objectKey string, expires int64) (url string, err error)
- func (c *Client) ListObjects(prefix string) ([]*gooss.Object, error)
- func (c *Client) PutObject(objectKey string, filePath string) (err error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Config *Config
StorageCfg storage.Config
Mac *qbox.Mac
BucketManager *storage.BucketManager
}
func (*Client) DeleteObject ¶
func (*Client) DeleteObjects ¶
func (Client) GetEndpoint ¶
func (*Client) GetObjectToFile ¶
func (*Client) GetObjectURL ¶
type Config ¶
type Config struct {
AccessKeyId string // 替换为用户的 SecretId,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi
AccessKeySecret string // 替换为用户的 SecretKey,请登录访问管理控制台进行查看和管理,https://console.cloud.tencent.com/cam/capi
SessionToken string
Region string
Bucket string
Endpoint string
PrivateURL bool
}
Click to show internal directories.
Click to hide internal directories.