upload

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() *cos.Client

NewClient init COS client

Types

type COS

type COS interface {
	UploadFile(file *multipart.FileHeader) (string, string, error)
	DeleteFile(key string) error
}

func NewCos

func NewCos() COS

type TencentCOS

type TencentCOS struct{}

func (*TencentCOS) DeleteFile

func (*TencentCOS) DeleteFile(key string) error

DeleteFile delete file form COS

func (*TencentCOS) UploadFile

func (*TencentCOS) UploadFile(file *multipart.FileHeader) (string, string, error)

UploadFile upload file to COS

Jump to

Keyboard shortcuts

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