oss

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSS

type OSS interface {
	MakeBucket(ctx context.Context, bucketName string) error                                                                 // 创建桶
	PutObject(ctx context.Context, bucketName string, objectName string, reader io.Reader, objectSize int64) (string, error) // 上传文件
}

OSS oss接口

type OSSClient

type OSSClient struct {
	Store OSS
}

OSSClient oss客户端

func NewOSS

func NewOSS() (*OSSClient, error)

func (*OSSClient) PutObject added in v1.0.7

func (o *OSSClient) PutObject(ctx context.Context, objectName string, reader io.Reader, objectSize int64) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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