Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliyunOSS ¶
type AliyunOSS struct {
// contains filtered or unexported fields
}
func (*AliyunOSS) DeleteFile ¶
func (*AliyunOSS) UploadFile ¶
type AwsS3 ¶
type AwsS3 struct {
// contains filtered or unexported fields
}
func (*AwsS3) DeleteFile ¶
func (*AwsS3) UploadFile ¶
type CloudflareR2 ¶
type CloudflareR2 struct {
// contains filtered or unexported fields
}
func (*CloudflareR2) DeleteFile ¶
func (u *CloudflareR2) DeleteFile(key string) error
func (*CloudflareR2) UploadFile ¶
func (u *CloudflareR2) UploadFile(file *multipart.FileHeader) (fileUrl string, fileName string, err error)
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
func (*Local) DeleteFile ¶
func (*Local) UploadFile ¶
type OSS ¶
type OSS interface { UploadFile(file *multipart.FileHeader) (string, string, error) DeleteFile(key string) error }
OSS 对象存储接口
type Obs ¶
type Obs struct {
// contains filtered or unexported fields
}
func (*Obs) DeleteFile ¶
func (*Obs) NewHuaWeiObsClient ¶
func (*Obs) UploadFile ¶
type Qiniu ¶
type Qiniu struct {
// contains filtered or unexported fields
}
func (*Qiniu) DeleteFile ¶
func (*Qiniu) UploadFile ¶
type TencentCOS ¶
type TencentCOS struct {
// contains filtered or unexported fields
}
func (*TencentCOS) DeleteFile ¶
func (u *TencentCOS) DeleteFile(key string) error
DeleteFile delete file form COS
func (*TencentCOS) NewClient ¶
func (u *TencentCOS) NewClient() *cos.Client
NewClient init COS client
func (*TencentCOS) UploadFile ¶
func (u *TencentCOS) UploadFile(file *multipart.FileHeader) (string, string, error)
UploadFile upload file to COS
Click to show internal directories.
Click to hide internal directories.