Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.