AliYunOssClient

package module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash256

func Hash256(str string) string

* 生成hash256

Types

type AliYunClientInterface

type AliYunClientInterface interface {
	//文件上传(本地文件上传)
	Put(bucket, fileName, localFilePath string) error

	/**
	字符串上传
	*/
	PutStream(bucketName string, fileName string, reader io.Reader) error

	/**
	分片上传
	*/
	PutStreamChunk(bucketName string, filePath string, fileName string, chunkNum int) error
}

func NewAliYunOssClient

func NewAliYunOssClient(endPoint, accesskeyId, accessKeySecret string) AliYunClientInterface

Jump to

Keyboard shortcuts

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