minio

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MinioClient

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

MinioClient minio客户端

func NewClient

func NewClient(endpoint, accessKeyID, secretAccessKey string) (*MinioClient, error)

NewClient 客户端

func (*MinioClient) MakeBucket

func (c *MinioClient) MakeBucket(ctx context.Context, bucketName string) error

MakeBucket 创建桶

func (*MinioClient) PutObject

func (c *MinioClient) PutObject(ctx context.Context, bucketName string, objectName string, file *multipart.FileHeader) error

PutObject 上传对象

Jump to

Keyboard shortcuts

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