Documentation ¶
Index ¶
- type OssClient
- func (c *OssClient) DeleteBucket(request *oss.DeleteBucketRequest) (*oss.DeleteBucketResponse, error)
- func (c *OssClient) HeadBucket(request *oss.HeadBucketRequest) (*oss.HeadBucketResponse, error)
- func (c *OssClient) ListBuckets(request *oss.ListBucketsRequest) (*oss.ListBucketsResponse, error)
- func (c *OssClient) PutBucket(request *oss.PutBucketRequest) (*oss.PutBucketResponse, error)
- func (c *OssClient) SetConfig(config *core.Config)
- func (c *OssClient) SetLogger(logger core.Logger)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OssClient ¶
type OssClient struct {
core.JDCloudClient
}
func NewOssClient ¶
func NewOssClient(credential *core.Credential) *OssClient
func (*OssClient) DeleteBucket ¶
func (c *OssClient) DeleteBucket(request *oss.DeleteBucketRequest) (*oss.DeleteBucketResponse, error)
删除一个bucket
func (*OssClient) HeadBucket ¶
func (c *OssClient) HeadBucket(request *oss.HeadBucketRequest) (*oss.HeadBucketResponse, error)
查询bucket是否存在
func (*OssClient) ListBuckets ¶
func (c *OssClient) ListBuckets(request *oss.ListBucketsRequest) (*oss.ListBucketsResponse, error)
列出当前用户的所有bucket
func (*OssClient) PutBucket ¶
func (c *OssClient) PutBucket(request *oss.PutBucketRequest) (*oss.PutBucketResponse, error)
创建bucket
Click to show internal directories.
Click to hide internal directories.