minio

package
v1.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download added in v1.1.9

func Download(object string) io.ReadCloser

Download 获取object io

func DownloadBucket added in v1.2.2

func DownloadBucket(bucket, object string) io.ReadCloser

func DownloadGin added in v1.1.9

func DownloadGin(c *gin.Context, object string, attachment bool)

DownloadGin 查询object的方式获取流

func DownloadGinBucket added in v1.2.2

func DownloadGinBucket(c *gin.Context, bucket, object string, attachment bool)

func Driver

func Driver() *minio.Client

func Init

func Init()

func Upload added in v1.0.3

func Upload(filename string, reader io.Reader) string

Upload 上传文件流

func UploadBucket added in v1.2.2

func UploadBucket(bucket, filename string, reader io.Reader, size int64) string

UploadBucket 上传文件到指定bucket

func UploadBucketForward added in v1.3.5

func UploadBucketForward(bucket, filename string, fileLength int64, reader io.Reader) string

UploadBucketForward 预上传文件到指定bucket

func UploadForward added in v1.3.5

func UploadForward(filename string, fileLength int64, reader io.Reader) string

UploadForward 使用预签名put转发到minio

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL