Versions in this module Expand all Collapse all v1 v1.0.22 Feb 11, 2024 Changes in this version + var CosSet = wire.NewSet(NewCosSDK) + type CosSDK struct + CDNConf *config.CDNConfig + func NewCosSDK(config *config.Config) (*CosSDK, error) + func (s *CosSDK) BatchImageAuditing(ctx context.Context, opt *cos.BatchImageAuditingOptions) (*cos.BatchImageAuditingJobResult, *cos.Response, error) + func (s *CosSDK) Delete(ctx context.Context, name string, opt ...*cos.ObjectDeleteOptions) (*cos.Response, error) + func (s *CosSDK) GenerateURL(path string, ttl int) string + func (s *CosSDK) GetCredential(ctx context.Context, opt *sts.CredentialOptions, isFile bool) (*sts.CredentialResult, error) + func (s *CosSDK) GetPresignedURL(ctx context.Context, httpMethod, name, ak, sk string, expired time.Duration, ...) (*url.URL, error)