Documentation ¶
Index ¶
- func CompressByGzip(tmpFile, saveFile string) (err error)
- func MD5Crypt(str string) string
- type BOS
- func (b *BOS) Delete(objects ...string) (err error)
- func (b *BOS) Download(object string, savePath string) (err error)
- func (b *BOS) GetInfo(object string) (info File, err error)
- func (b *BOS) GetSignURL(object string, expire int64) (link string, err error)
- func (b *BOS) IsExist(object string) (err error)
- func (b *BOS) Lists(prefix string) (files []File, err error)
- func (b *BOS) Upload(tmpFile, saveFile string, headers ...map[string]string) (err error)
- type COS
- func (c *COS) Delete(objects ...string) (err error)
- func (c *COS) Download(object string, savePath string) (err error)
- func (c *COS) GetInfo(object string) (info File, err error)
- func (c *COS) GetSignURL(object string, expire int64) (link string, err error)
- func (c *COS) IsExist(object string) (err error)
- func (c *COS) Lists(prefix string) (files []File, err error)
- func (c *COS) Upload(tmpFile, saveFile string, headers ...map[string]string) (err error)
- type CloudStore
- type File
- type MinIO
- func (m *MinIO) Delete(objects ...string) (err error)
- func (m *MinIO) Download(object string, savePath string) (err error)
- func (m *MinIO) GetInfo(object string) (info File, err error)
- func (m *MinIO) GetSignURL(object string, expire int64) (link string, err error)
- func (m *MinIO) IsExist(object string) (err error)
- func (m *MinIO) Lists(prefix string) (files []File, err error)
- func (m *MinIO) Upload(tmpFile, saveFile string, headers ...map[string]string) (err error)
- type OBS
- func (o *OBS) Delete(objects ...string) (err error)
- func (o *OBS) Download(object string, savePath string) (err error)
- func (o *OBS) GetInfo(object string) (info File, err error)
- func (o *OBS) GetSignURL(object string, expire int64) (link string, err error)
- func (o *OBS) IsExist(object string) (err error)
- func (o *OBS) Lists(prefix string) (files []File, err error)
- func (o *OBS) Upload(tmpFile, saveFile string, headers ...map[string]string) (err error)
- type OSS
- func (o *OSS) Delete(objects ...string) (err error)
- func (o *OSS) Download(object string, savePath string) (err error)
- func (o *OSS) GetInfo(object string) (info File, err error)
- func (o *OSS) GetSignURL(object string, expire int64) (link string, err error)
- func (o *OSS) IsExist(object string) (err error)
- func (o *OSS) Lists(prefix string) (files []File, err error)
- func (o *OSS) Upload(tmpFile, saveFile string, headers ...map[string]string) (err error)
- type QINIU
- func (q *QINIU) Delete(objects ...string) (err error)
- func (q *QINIU) Download(object string, savePath string) (err error)
- func (q *QINIU) GetInfo(object string) (info File, err error)
- func (q *QINIU) GetSignURL(object string, expire int64) (link string, err error)
- func (q *QINIU) IsExist(object string) (err error)
- func (q *QINIU) Lists(prefix string) (files []File, err error)
- func (q *QINIU) Upload(tmpFile, saveFile string, headers ...map[string]string) (err error)
- type UpYun
- func (u *UpYun) Delete(objects ...string) (err error)
- func (u *UpYun) Download(object string, savePath string) (err error)
- func (u *UpYun) GetInfo(object string) (info File, err error)
- func (u *UpYun) GetSignURL(object string, expire int64) (link string, err error)
- func (u *UpYun) IsExist(object string) (err error)
- func (u *UpYun) Lists(prefix string) (files []File, err error)
- func (u *UpYun) Upload(tmpFile, saveFile string, headers ...map[string]string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressByGzip ¶
Types ¶
type BOS ¶
type BOS struct { AccessKey string SecretKey string Bucket string Endpoint string Domain string Client *bos.Client }
func (*BOS) GetSignURL ¶
type COS ¶
type COS struct { AccessKey string SecretKey string Bucket string AppID string Region string Domain string Client *cos.Client }
func (*COS) GetSignURL ¶
type CloudStore ¶
type CloudStore interface { Delete(objects ...string) (err error) // 删除文件 GetSignURL(object string, expire int64) (link string, err error) // 文件访问签名 IsExist(object string) (err error) // 判断文件是否存在 Lists(prefix string) (files []File, err error) // 文件前缀,列出文件 Upload(tmpFile string, saveFile string, headers ...map[string]string) (err error) // 上传文件 Download(object string, savePath string) (err error) // 下载文件 GetInfo(object string) (info File, err error) // 获取指定文件信息 }
type MinIO ¶
type MinIO struct { AccessKey string SecretKey string Bucket string Endpoint string Domain string Client *minio.Client }
func (*MinIO) GetSignURL ¶
type OBS ¶
type OBS struct { AccessKey string SecretKey string Bucket string Endpoint string Domain string Client *obs.ObsClient }
func (*OBS) GetSignURL ¶
type OSS ¶
type OSS struct { AccessKey string SecretKey string Endpoint string Bucket string Domain string Client *oss.Bucket }
func (*OSS) GetSignURL ¶
type QINIU ¶
type QINIU struct { AccessKey string SecretKey string Bucket string Domain string Zone *storage.Zone BucketManager *storage.BucketManager // contains filtered or unexported fields }
func (*QINIU) GetSignURL ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.