Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HuaWeiObs = new(_obs)
Functions ¶
func NewHuaWeiObsClient ¶
Types ¶
type AliyunOSS ¶
type AliyunOSS struct{}
func (*AliyunOSS) DeleteFile ¶
func (*AliyunOSS) UploadMultipartFile ¶
type Local ¶
type Local struct{}
func (*Local) DeleteFile ¶
func (*Local) UploadFileWithUrl ¶
func (*Local) UploadFileWithUrl(file *multipart.FileHeader)
func (*Local) UploadMultipartFile ¶
type OSS ¶
type OSS interface { UploadMultipartFile(file *multipart.FileHeader) (string, string, error) UploadMultipartFileWithPrefix(multipartFile *multipart.FileHeader, prefix string) (string, string, error) UploadFileWithPrefix(fileName string, file io.Reader, fileSize int64, prefix string) (string, string, error) DeleteFile(key string) error }
OSS 对象存储接口 Author [SliverHorn](https://github.com/SliverHorn) Author [ccfish86](https://github.com/ccfish86)
func NewOss ¶
func NewOss() OSS
NewOss OSS的实例化方法 Author [SliverHorn](https://github.com/SliverHorn) Author [ccfish86](https://github.com/ccfish86)
type TencentCOS ¶
type TencentCOS struct{}
func (*TencentCOS) DeleteFile ¶
func (*TencentCOS) DeleteFile(key string) error
DeleteFile delete file form COS
func (*TencentCOS) UploadMultipartFile ¶
func (*TencentCOS) UploadMultipartFile(file *multipart.FileHeader) (string, string, error)
UploadFile upload file to COS
Click to show internal directories.
Click to hide internal directories.