cos

package
v1.0.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CosSet = wire.NewSet(
	NewCosSDK,
)

Functions

This section is empty.

Types

type CosSDK

type CosSDK struct {
	CDNConf *config.CDNConfig
	// contains filtered or unexported fields
}

func NewCosSDK

func NewCosSDK(config *config.Config) (*CosSDK, error)

func (*CosSDK) BatchImageAuditing

func (s *CosSDK) BatchImageAuditing(ctx context.Context, opt *cos.BatchImageAuditingOptions) (*cos.BatchImageAuditingJobResult, *cos.Response, error)

func (*CosSDK) Delete

func (s *CosSDK) Delete(ctx context.Context, name string, opt ...*cos.ObjectDeleteOptions) (*cos.Response, error)

func (*CosSDK) GenerateURL

func (s *CosSDK) GenerateURL(path string, ttl int) string

func (*CosSDK) GetCredential

func (s *CosSDK) GetCredential(ctx context.Context, opt *sts.CredentialOptions, isFile bool) (*sts.CredentialResult, error)

func (*CosSDK) GetPresignedURL

func (s *CosSDK) GetPresignedURL(ctx context.Context, httpMethod, name, ak, sk string, expired time.Duration, opt interface{}, signHost ...bool) (*url.URL, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL