upload

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MulanPSL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UssHost   string
	AppID     int
	UssSecret string
	UssHost2  string
)

Functions

This section is empty.

Types

type Uss

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

func NewUss

func NewUss() *Uss

func NewUssDownload

func NewUssDownload() *Uss

func (*Uss) CreateBucket

func (u *Uss) CreateBucket(name string) error

func (*Uss) DeleteBucket

func (u *Uss) DeleteBucket(name string) error

func (*Uss) DeleteObject

func (u *Uss) DeleteObject(bucket string, fileName string) error

func (*Uss) GetObject

func (u *Uss) GetObject(bucket string, fileName string, filePath string, fileType string) error

func (*Uss) ListObjects

func (u *Uss) ListObjects(bucket string) (list []string)

func (*Uss) PutObject

func (u *Uss) PutObject(bucket string, fileName string, filePath string, fileType string) error

Jump to

Keyboard shortcuts

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