minio

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientMinIO

type ClientMinIO struct {
	// contains filtered or unexported fields
}

func NewMinIOClient

func NewMinIOClient(endpoint, accessKey, secretKey string, secure bool) (*ClientMinIO, error)

NewMinIOClient 初始化MinIO客户端

func (*ClientMinIO) CreateBucket

func (mc *ClientMinIO) CreateBucket(bucketName, location string) error

CreateBucket 创建存储桶

func (*ClientMinIO) DeleteBucket

func (mc *ClientMinIO) DeleteBucket(bucketName string) error

DeleteBucket 删除存储桶

func (*ClientMinIO) DeleteObject

func (mc *ClientMinIO) DeleteObject(bucketName, objectName string) error

DeleteObject 删除对象

func (*ClientMinIO) GetObject

func (mc *ClientMinIO) GetObject(bucketName, objectName, filePath string) error

GetObject 下载对象

func (*ClientMinIO) PutDirObject

func (mc *ClientMinIO) PutDirObject(bucketName, remotePath, localPath string) error

PutDirObject 上传整个目录(包括子目录和其中的文件和文件夹)到存储桶中

func (*ClientMinIO) PutObject

func (mc *ClientMinIO) PutObject(bucketName, objectName, filePath string) error

PutObject 上传对象

Jump to

Keyboard shortcuts

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