Documentation ¶
Index ¶
- type ClientMinIO
- func (mc *ClientMinIO) CreateBucket(bucketName, location string) error
- func (mc *ClientMinIO) DeleteBucket(bucketName string) error
- func (mc *ClientMinIO) DeleteObject(bucketName, objectName string) error
- func (mc *ClientMinIO) GetObject(bucketName, objectName, filePath string) error
- func (mc *ClientMinIO) PutDirObject(bucketName, remotePath, localPath string) error
- func (mc *ClientMinIO) PutObject(bucketName, objectName, filePath string) error
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 上传对象
Click to show internal directories.
Click to hide internal directories.