aliyun

package
v0.0.0-...-ae394c8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliYun

type AliYun struct {
	AccessKeyId     string
	AccessKeySecret string
	OssRegion       string
	OssBucketName   string
	OssClient       *oss.Client
}

func Oss

func Oss() *AliYun

Oss 实例对象

func (*AliYun) PathToUrl

func (a *AliYun) PathToUrl(path string) string

PathToUrl 名称换链接

func (*AliYun) PreSignedUrlForGet

func (a *AliYun) PreSignedUrlForGet(object model.Oss) (model.Oss, error)

PreSignedUrlForGet 获取只读授权链接

func (*AliYun) PutObject

func (a *AliYun) PutObject(object model.Oss) (model.Oss, error)

PutObject 上传对象文件

func (*AliYun) RemoveObject

func (a *AliYun) RemoveObject(object model.Oss) error

RemoveObject 移除对象文件

Jump to

Keyboard shortcuts

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