Documentation ¶
Index ¶
- func ReadLog() (map[string]string, error)
- type Bucket
- func (s *Bucket) CreateLog(uploadedFiles map[string]string) error
- func (s *Bucket) IsOnCurrentBucket(fileUrl string) bool
- func (s *Bucket) NewSaveFilePath(fileSrc string) string
- func (s *Bucket) RequestFileBody(fileUrl string) (body []byte, status int)
- func (s *Bucket) UploadFiles(filenames []string) error
- func (s *Bucket) UploadToOss(fileSrc string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bucket ¶
type Bucket struct { *oss.Bucket UploadedFiles map[string]string // 用于记录已上传的文件 Status bool // contains filtered or unexported fields }
func (*Bucket) IsOnCurrentBucket ¶
func (*Bucket) NewSaveFilePath ¶
func (*Bucket) RequestFileBody ¶
func (*Bucket) UploadFiles ¶
Click to show internal directories.
Click to hide internal directories.