Documentation ¶
Index ¶
- func Download(object string) io.ReadCloser
- func DownloadBucket(bucket, object string) io.ReadCloser
- func DownloadGin(c *gin.Context, object string, attachment bool)
- func DownloadGinBucket(c *gin.Context, bucket, object string, attachment bool)
- func Driver() *minio.Client
- func Init()
- func Upload(filename string, reader io.Reader) string
- func UploadBucket(bucket, filename string, reader io.Reader, size int64) string
- func UploadBucketForward(bucket, filename string, fileLength int64, reader io.Reader) string
- func UploadForward(filename string, fileLength int64, reader io.Reader) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadBucket ¶ added in v1.2.2
func DownloadBucket(bucket, object string) io.ReadCloser
func DownloadGin ¶ added in v1.1.9
DownloadGin 查询object的方式获取流
func DownloadGinBucket ¶ added in v1.2.2
func UploadBucket ¶ added in v1.2.2
UploadBucket 上传文件到指定bucket
func UploadBucketForward ¶ added in v1.3.5
UploadBucketForward 预上传文件到指定bucket
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.