aliyun

package
v1.0.39 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliyunClient

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

AliyunClient minio客户端

func NewClient

func NewClient(endpoint, accessKeyId, accessKeySecret string) (*AliyunClient, error)

NewClient 客户端

func (*AliyunClient) MakeBucket

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

MakeBucket 创建桶

func (*AliyunClient) PutObject

func (c *AliyunClient) PutObject(ctx context.Context, bucketName string, objectName string, reader io.Reader, objectSize int64) (string, error)

PutObject 上传对象

func (*AliyunClient) PutObjectFromFile added in v1.0.28

func (c *AliyunClient) PutObjectFromFile(ctx context.Context, bucketName, objectName, localFile string) (string, error)

PutObjectFromFile 上传本地文件

Jump to

Keyboard shortcuts

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