oss

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SIMPLE = iota
	TADD
	BREAKPOINT
	BURST
)

上传选择类型

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientStruct

type ClientStruct struct {
	*oss.Client
}
var (
	Client *ClientStruct

	ConfigValue map[string]string
)

func (*ClientStruct) CreateBucketOfVersion

func (client *ClientStruct) CreateBucketOfVersion(name string, isVersion bool) bool

CreateBucketOfVersion 创建空间,根据版本

func (*ClientStruct) DeleteObject

func (client *ClientStruct) DeleteObject(key string) error

DeleteObject 删除资源

func (*ClientStruct) GetBucketInfo

func (client *ClientStruct) GetBucketInfo(name string) oss.GetBucketVersioningResult

GetBucketInfo 获取空间版本状态信息

func (client *ClientStruct) GetObjectSoftLink(key string) (data []byte)

GetObjectSoftLink 获取Object资源

func (*ClientStruct) IsExist

func (client *ClientStruct) IsExist(key string) bool

判断文件是否存在

func (*ClientStruct) Upload

func (client *ClientStruct) Upload(uploadType int, suffix string, data multipart.File) (bool, string)

Upload 上传

type OssProgressListener

type OssProgressListener struct {
}

定义进度条监听器。

func (*OssProgressListener) ProgressChanged

func (listener *OssProgressListener) ProgressChanged(event *oss.ProgressEvent)

定义进度变更事件处理函数。

Jump to

Keyboard shortcuts

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