oss

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 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 ChunkUploadGetStreamCS added in v1.0.6

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

ChunkUploadGetStreamCS auto upload file chunk check of get method by cloud also concurrent safe

func ChunkUploadGetStreamCSByDfsID added in v1.0.7

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

ChunkUploadGetStreamCSByDfsID auto upload file chunk check of get method by cloud also concurrent safe

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 ChunkUploadPostStreamCS added in v1.0.6

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

func ChunkUploadPostStreamCSByDfsID added in v1.0.7

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

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