ali

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildOssInfo

func BuildOssInfo(accessKeyID, accessKeySecret string)

BuildOssInfo 构建oss信息

Types

type AliOss

type AliOss struct {
	Region     string // 存储区域
	BucketName string // 存储空间名称
	ObjectName string // 对象名称
}

func (*AliOss) NewAliOssDel

func (a *AliOss) NewAliOssDel(ctx context.Context) error

NewAliOssDel 新建阿里云OSS删除

func (*AliOss) NewAliOssDownload

func (a *AliOss) NewAliOssDownload(ctx context.Context, proxyInfo string) ([]byte, error)

NewAliOssDownload 新建阿里云OSS下载

func (*AliOss) NewAliOssUpLoad

func (a *AliOss) NewAliOssUpLoad(ctx context.Context, proxyInfo string, data []byte) (string, error)

NewAliOssUpLoad 新建阿里云OSS上传

  • @param data {[]byte} 待上传数据

Jump to

Keyboard shortcuts

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