minio

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBucket

func CreateBucket(bucketName string) error

CreateBucket 创建桶

func GetFileUrl

func GetFileUrl(bucketName string, fileName string, expires time.Duration) (*url.URL, error)

GetFileUrl 从 minio 获取文件 Url

func Init added in v0.0.4

func Init()

Init only called by publish service

func RemoveOneFile

func RemoveOneFile(bucketName string, fileName string) error

RemoveOneFile 从 minio 中删除文件

func UploadFile

func UploadFile(bucketName string, objectName string, reader io.Reader, objectsize int64) error

UploadFile 上传文件(提供 reader)至 minio

func UploadLocalFile

func UploadLocalFile(bucketName string, objectName string, filePath string, contentType string) (int64, error)

UploadLocalFile 上传本地文件(提供文件路径)至 minio

Types

This section is empty.

Jump to

Keyboard shortcuts

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