Documentation ¶
Index ¶
- func UploadFile(domain, file string, buckername string, accessKey, secretKey string, ...) (publicAccessURL, key, hash string, err error)
- func UploadFileByte(domain, fileName, buckername, accessKey, secretKey string, data []byte, ...) (pubURL, key, hash string, err error)
- func UploadFileByteV2(domain, fileName, buckername, accessKey, secretKey string, data []byte, ...) (pubURL, key, hash string, err error)
- func UploadFileUrl(domain, fileUrl string, buckername string, accessKey, secretKey string, ...) (publicAccessURL, key, hash string, err error)
- func UploadFileUrlEx(domain, fileUrl string, buckername string, accessKey, secretKey string, ...) (publicAccessURL, key, hash string, err error)
- func UploadFileV2(domain, file string, buckername string, accessKey, secretKey string, ...) (publicAccessURL, key, hash string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UploadFile ¶
func UploadFile(domain, file string, buckername string, accessKey, secretKey string, isOnly bool) (publicAccessURL, key, hash string, err error)
上传文件
func UploadFileByte ¶
func UploadFileByteV2 ¶
func UploadFileByteV2(domain, fileName, buckername, accessKey, secretKey string, data []byte, isOnly bool, days int) (pubURL, key, hash string, err error)
days := 7 days=设置或更新文件的生存时间 天 上传文件切片
func UploadFileUrl ¶
func UploadFileUrlEx ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.