Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAliyunOssClient ¶
func GetTencentCosClient ¶
func GetTencentCosClient() *cos.Client
Types ¶
type AliyunOssClient ¶
type AliyunOssClient struct {
// contains filtered or unexported fields
}
func NewAliyunOss ¶
func NewAliyunOss(client *oss.Client, endpoint, accessId, accessSecret, bucket string) *AliyunOssClient
func (*AliyunOssClient) Check ¶
func (m *AliyunOssClient) Check() bool
func (*AliyunOssClient) Close ¶
func (m *AliyunOssClient) Close()
func (*AliyunOssClient) GetClient ¶
func (m *AliyunOssClient) GetClient() interface{}
GetClient 暴露原生client
func (*AliyunOssClient) String ¶
func (m *AliyunOssClient) String() string
type TencentCosClient ¶
type TencentCosClient struct {
// contains filtered or unexported fields
}
func NewTencentCos ¶
func NewTencentCos(client *cos.Client, base *cos.BaseURL, transport *cos.AuthorizationTransport) *TencentCosClient
func (*TencentCosClient) Check ¶
func (rc *TencentCosClient) Check() bool
func (*TencentCosClient) Close ¶
func (rc *TencentCosClient) Close()
func (*TencentCosClient) GetClient ¶
func (rc *TencentCosClient) GetClient() interface{}
GetClient 暴露原生client
func (*TencentCosClient) String ¶
func (rc *TencentCosClient) String() string
Click to show internal directories.
Click to hide internal directories.