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) UploadFile ¶
type CloudflareR2 ¶
type CloudflareR2 struct{}
func (*CloudflareR2) DeleteFile ¶
func (c *CloudflareR2) DeleteFile(key string) error
func (*CloudflareR2) UploadFile ¶
func (c *CloudflareR2) UploadFile(file *multipart.FileHeader) (fileUrl string, fileName string, err error)
type Minio ¶
type Minio struct { Client *minio.Client // contains filtered or unexported fields }
var MinioClient *Minio // 优化性能,但是不支持动态配置
func (*Minio) DeleteFile ¶
func (*Minio) UploadFile ¶
func (m *Minio) UploadFile(file *multipart.FileHeader) (filePathres, key string, uploadErr error)
type OSS ¶
type OSS interface { UploadFile(file *multipart.FileHeader) (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) UploadFile ¶
func (*TencentCOS) UploadFile(file *multipart.FileHeader) (string, string, error)
UploadFile upload file to COS
Click to show internal directories.
Click to hide internal directories.