aliyun

package
v0.0.0-...-20002e4 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 7 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 {
	Client *aliOss.Client
}

func (*AliYun) PreSignedPutObjectUrl

func (ali *AliYun) PreSignedPutObjectUrl(ctx context.Context, req *oss.PreSignedPutObjectUrlReq) (*oss.PreSignedPutObjectUrlResp, error)

PreSignedPutObjectUrl 阿里云生成预签名的链接. 这里生成签名的时候没有 指定 Content-Type 所以前端上传的时候也不能指定 Content-Type.

func (*AliYun) PutObject

func (ali *AliYun) PutObject(ctx context.Context, req *oss.PutObjectReq) (resp *oss.PutObjectResp, err error)

PutObject 通过二进制文件 上传文件

Jump to

Keyboard shortcuts

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