1 Star 0 Fork 12

xp_hust / CloudStore

forked from 进击的皇虫 / CloudStore 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
interface.go 921 Bytes
一键复制 编辑 原始数据 按行查看 历史
TruthHun 提交于 2019-03-19 23:19 . 文档整理
package CloudStore
import (
"time"
)
type File struct {
ModTime time.Time
Name string
Size int64
IsDir bool
Header map[string]string
}
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) // 获取指定文件信息
}
Go
1
https://gitee.com/xphust/CloudStore.git
git@gitee.com:xphust/CloudStore.git
xphust
CloudStore
CloudStore
master

搜索帮助