minio

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 14 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 UploadGin added in v1.2.7

func UploadGin(c *gin.Context) string

UploadGin 使用预签名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