Versions in this module Expand all Collapse all v1 v1.0.1 Jun 21, 2026 Changes in this version + type AliyunOSSUpload struct + func InitAliyunOSSUpload(accessKeyID, accessKeySecret, endpoint, bucketName string) (*AliyunOSSUpload, error) + func (a *AliyunOSSUpload) DeleteObject(objectKey string) error + func (a *AliyunOSSUpload) GetObjectURL(objectKey string) string + func (a *AliyunOSSUpload) GetPublicUrl(filename string) string + func (a *AliyunOSSUpload) GetSignedURL(objectKey string, expiredInSec int64) (string, error) + func (a *AliyunOSSUpload) IsAvailable() bool + func (a *AliyunOSSUpload) Upload(ctx context.Context, reader io.Reader, name string) error + func (a *AliyunOSSUpload) UploadWithMetadata(ctx context.Context, reader io.Reader, name string, metadata map[string]string) error + type QiniuUpload struct + func InitQiniuUpload(regionId, bucket, accessKey, secretKey string) (*QiniuUpload, error) + func (q *QiniuUpload) Delete(ctx context.Context, key string) error + func (q *QiniuUpload) GetPublicURL(domain string, key string) string + func (q *QiniuUpload) Upload(ctx context.Context, bucket string, reader io.Reader, name string) error