bucket

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadLog

func ReadLog() (map[string]string, error)

Types

type Bucket

type Bucket struct {
	*oss.Bucket
	UploadedFiles map[string]string // 用于记录已上传的文件

	Status bool
	// contains filtered or unexported fields
}

func New

func New(filenames []string) *Bucket

func (*Bucket) CreateLog

func (s *Bucket) CreateLog(uploadedFiles map[string]string) error

func (*Bucket) IsOnCurrentBucket

func (s *Bucket) IsOnCurrentBucket(fileUrl string) bool

func (*Bucket) NewSaveFilePath

func (s *Bucket) NewSaveFilePath(fileSrc string) string

func (*Bucket) RequestFileBody

func (s *Bucket) RequestFileBody(fileUrl string) (body []byte, status int)

func (*Bucket) UploadFiles

func (s *Bucket) UploadFiles(filenames []string) error

func (*Bucket) UploadToOss

func (s *Bucket) UploadToOss(fileSrc string) (string, error)

Jump to

Keyboard shortcuts

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