minio

package
v0.0.0-...-7de97a6 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBucket

func CreateBucket(minioClient *minio.Client, bucketName string) error

创建桶

func GetMinioUrl

func GetMinioUrl(minioClient *minio.Client,
	bulkName, objectName string, expires time.Duration) (*url.URL, error)

func Init_minio

func Init_minio()

func RemoveObject

func RemoveObject(minioClient *minio.Client, bulkName, objectName string)

删除对象

func UploadObject

func UploadObject(minioClient *minio.Client, filetype string,
	bulkName, objectName string, reader io.Reader, size int64) error

上传对象

Types

type MinioClient

type MinioClient struct {
	Client *minio.Client

	VideoBucket string
	ImageBucket string
	// contains filtered or unexported fields
}

func GetMinioClient

func GetMinioClient() MinioClient

Jump to

Keyboard shortcuts

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