sdk

package
v0.0.0-...-bd0de05 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ALiOSSCopyFile

func ALiOSSCopyFile(ossUrl, accessKey, secretKey, bucket string, source, target string) (*oss.CopyObjectResult, error)

func ALiOSSDeleteFile

func ALiOSSDeleteFile(ossUrl, accessKey, secretKey, bucket string, file string) error

func ALiOSSFileExist

func ALiOSSFileExist(ossUrl, accessKey, secretKey, bucket string, file string) (bool, error)

func ALiOSSFileList

func ALiOSSFileList(ossUrl, accessKey, secretKey, bucket string, keyWorld string) ([]string, error)

func ALiOSSMultiLandDeleteFile

func ALiOSSMultiLandDeleteFile(ossUrl, accessKey, secretKey, bucket string, files []string) error

func ALiOssGetFile

func ALiOssGetFile(ossUrl, accessKey, secretKey, bucket string, file string) ([]byte, error)

func ALiOssUpLoadFile

func ALiOssUpLoadFile(ossUrl, accessKey, secretKey, bucket string, file string, body []byte) error

func AwsS3CopyFile

func AwsS3CopyFile(accessKey, secretKey, bucket, regionID, path, source, target string) error

func AwsS3CopyFileWaitObjectExists

func AwsS3CopyFileWaitObjectExists(accessKey, secretKey, bucket, regionID, path, source, target string) error

func AwsS3DeleteFile

func AwsS3DeleteFile(accessKey, secretKey, bucket, regionID, path, file string) error

func AwsS3DeleteFileWaitObjectNotExist

func AwsS3DeleteFileWaitObjectNotExist(accessKey, secretKey, bucket, regionID, path, file string) error

func AwsS3FileExist

func AwsS3FileExist(accessKey, secretKey, bucket, regionID, path, file string) bool

func AwsS3FileList

func AwsS3FileList(accessKey, secretKey, bucket, regionID, path, keyword string) ([]string, error)

func AwsS3GetFile

func AwsS3GetFile(accessKey, secretKey, bucket, regionID, path, file string) ([]byte, error)

func AwsS3MultiLandDeleteFile

func AwsS3MultiLandDeleteFile(accessKey, secretKey, bucket, regionID, path string, files []string) error

func AwsS3UploadFile

func AwsS3UploadFile(accessKey, secretKey, bucket, regionID, path, file string, body []byte) error

upload file to aws s3

func IpfsAddFile

func IpfsAddFile(ipfsUrl string, body []byte) (fileHash string, err error)

func IpfsCatFile

func IpfsCatFile(ipfsUrl string, fileHash string) ([]byte, error)

func QiNiuGetFile

func QiNiuGetFile(qiniuUrl string, file string) (bs []byte, err error)

func QiNiuOverWriteToken

func QiNiuOverWriteToken(accessKey, secretKey, bucket, overWriteFile string) string

func QiNiuReplaceUploadFile

func QiNiuReplaceUploadFile(accessKey, secretKey, bucket string, file string, data []byte) (url string, err error)

func QiNiuToken

func QiNiuToken(accessKey, secretKey, bucket string) string

func QiNiuUploadFile

func QiNiuUploadFile(accessKey, secretKey, bucket string, file string, data []byte) (url string, err error)

Types

type QiniuPutRet

type QiniuPutRet struct {
	Key    string
	Hash   string
	Fsize  int
	Bucket string
	Name   string
}

Jump to

Keyboard shortcuts

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