third

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBucket

func NewBucket(ossConfig *config.OSSConfig) (*oss.Bucket, error)

NewBucket 创建桶.

Types

type OssUploadFile

type OssUploadFile struct {
	LocalFile  string `json:"local_file"` // 本地文件
	SaveDir    string `json:"save_dir"`   // 保存到远程的地址
	FilePrefix string `json:"file_name"`  // 文件名称
	FileSuffix string `json:"file_type"`  // 文件类型名称
}

func (*OssUploadFile) GetPutPath

func (f *OssUploadFile) GetPutPath(config *config.OSSConfig) string

image/2019-08-29/38564c69-85ba-4415-93d8-xxxxx.jpg.

func (*OssUploadFile) PutFile

func (f *OssUploadFile) PutFile(bucket *oss.Bucket, ossConfig *config.OSSConfig) error

PutFile 上传文件.

Jump to

Keyboard shortcuts

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