Documentation
¶
Index ¶
- func GetDownloadURL(access string, secret string, domain string, fileKey string, deadline int64) string
- func Upload(ctx context.Context, access string, secret string, zone *storage.Zone, ...) error
- func UploadImg(ctx context.Context, access string, secret string, bucket string, ...) error
- func UploadToken(access string, secret string, bucket string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDownloadURL ¶
func GetDownloadURL(access string, secret string, domain string, fileKey string, deadline int64) string
GetDownloadURL 获取私有下载链接
func Upload ¶
func Upload(ctx context.Context, access string, secret string, zone *storage.Zone, bucket string, fileKey string, bs []byte) error
Upload 上传到qiniu
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.