oss

package
v0.0.0-...-1272ae6 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliClient

type AliClient struct {
	AccessKeyId string
	Secret      string
	EndPoint    string
	BucketName  string
	ServerUrl   string
}

AliClient AliClient

func (*AliClient) NewAliClient

func (c *AliClient) NewAliClient(accessKeyId, secret, endPoint, bucketName, serverUrl string) *AliClient

NewAliClient NewAliClient

func (*AliClient) UploadHttpPhoto

func (c *AliClient) UploadHttpPhoto(rUrl, dir string) (url string, err error)

UploadHttpPhoto 上传网络/远程图片到oss

func (*AliClient) UploadPhoto

func (c *AliClient) UploadPhoto(reader io.Reader, dir, suffix string) (url string, err error)

UploadPhoto 上传一个图片文件到aliyun oss

Jump to

Keyboard shortcuts

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