action

package
v1.7.8-0...-a935b97 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateConcurrentWorkers

func CalculateConcurrentWorkers(partSize int64) (n int)

CalculateConcurrentWorkers will calculate the current workers via limit and part size.

func CalculatePartSize

func CalculatePartSize(size int64) (partSize int64, err error)

CalculatePartSize will calculate the object's part size.

func Copy

func Copy(src, dest string) (err error)

Copy will handle all copy actions.

func CopyNotSeekableFileToRemote

func CopyNotSeekableFileToRemote(r io.Reader, objectKey string) (total int64, err error)

CopyNotSeekableFileToRemote will copy a not seekable file to remote.

func CopyObjectToNotSeekableFile

func CopyObjectToNotSeekableFile(w io.Writer, objectKey string) (total int64, err error)

CopyObjectToNotSeekableFile will copy an object to not seekable file.

func Delete

func Delete(remote string) (err error)

Delete will delete a remote object.

func MakeBucket

func MakeBucket(remote string) (err error)

MakeBucket will make a bucket with specific name.

func ParseDirection

func ParseDirection(src, dst string) (flow string, err error)

ParseDirection will parse the data direction

func ParseFilePathForRead

func ParseFilePathForRead(filePath string) (r io.Reader, err error)

ParseFilePathForRead will parse file path and open an io.Reader for read.

func ParseFilePathForWrite

func ParseFilePathForWrite(filePath string) (w io.Writer, err error)

ParseFilePathForWrite will parse a file path and open an io.Write for write.

func ParseQsPath

func ParseQsPath(remotePath string) (bucketName, objectKey string, err error)

ParseQsPath will parse a qs path.

func Stat

func Stat(remote string) (err error)

Stat will handle all stat actions.

func StatRemoteObject

func StatRemoteObject(objectKey string) (err error)

StatRemoteObject will stat a remote object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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