object

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object struct {
	Client *oss.Client
}

func (*Object) DeleteObject

func (object *Object) DeleteObject(bucketName string, objectKey string) error

DeleteObject 删除文件

func (*Object) GetObject

func (object *Object) GetObject(bucketName string, objectKey string, loaclPath string) error

GetObject 下载文件

func (*Object) ListObject

func (object *Object) ListObject(bucketName string) ([]string, error)

ListObject 获取文件列表

func (*Object) PutObject

func (object *Object) PutObject(bucketName string, objectName string, path string) error

PutObject 上传文件

Jump to

Keyboard shortcuts

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