oss

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChunkUpload

func ChunkUpload(prefer, dfsID, bucketType, filePath, fileName string) (bn, endpoint string, err error)

ChunkUpload auto upload local file chunk check of get method by cloud

func ChunkUploadGetStream

func ChunkUploadGetStream(userID, prefer string, chunk utils.ChunksObj) (utils.ChunksObj, int, string, error)

ChunkUploadGetStream auto upload file chunk check of get method by cloud

func ChunkUploadPostStream

func ChunkUploadPostStream(userID, prefer string, chunk utils.ChunksObj, fileChunk *multipart.FileHeader) (utils.ChunksObj, int, string, error)

ChunkUploadPostStream auto upload file chunk by cloud

func GetFile

func GetFile(bucketName, dfsID string) ([]byte, string, string, int64, error)

GetFile get file bytes,name,content-type, size auto by cloud

func GetTempDownURLFileName

func GetTempDownURLFileName(bucketName, dfsID string, expires int64) (map[string]string, error)

GetTempDownURLFileName get file download url auto by cloud

func PutByteFile

func PutByteFile(prefer, dfsID string, chunk utils.ChunksObj, o map[string]string, f []byte) (utils.ChunksObj, error)

PutByteFile auto upload file Byte by cloud

func PutFile

func PutFile(prefer, dfsID string, chunk utils.ChunksObj, ossFile *multipart.FileHeader) (utils.ChunksObj, error)

PutFile auto upload file by cloud

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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