oss

package
Version: v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: Apache-2.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) Upload

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

Upload 上传文件

url,err:=client.Upload(reader,dir,ext)

func (*AliClient) UploadRemoteFile

func (c *AliClient) UploadRemoteFile(httpUrl, dir string) (url string, err error)

UploadRemoteFile 上传网络图片到oss

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL