aliyun

package
v0.0.0-...-ad531c1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParamByPath

func NewParamByPath(bucketName, objDir, objName string, localPath string) *store.UploadParam

NewParamByPath 通过本地路径上传到 oss

func NewParamByStream

func NewParamByStream(bucketName, objDir, objName string, fileStream multipart.File) *store.UploadParam

NewParamByStream 通过文件流上传到 oss

Types

type AliOssStore

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

func NewAliOssStore

func NewAliOssStore(isSaveCover bool) *AliOssStore

func (*AliOssStore) Upload

func (s *AliOssStore) Upload(param *store.UploadParam) (*store.UploadResult, error)

Upload 上传文件到 阿里云的 OSS

Jump to

Keyboard shortcuts

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