tencent

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(cfg *config.FSCfg) *cos.Client

NewClient init COS client

Types

type TencentCOS

type TencentCOS struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *config.FSCfg) *TencentCOS

func (*TencentCOS) DeleteFile

func (e *TencentCOS) DeleteFile(key string) error

DeleteFile delete file form COS

func (*TencentCOS) UploadFile

func (e *TencentCOS) UploadFile(file *multipart.FileHeader) (filePath string, fileKey string, err error)

UploadFile upload file to COS

Jump to

Keyboard shortcuts

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