Documentation ¶
Index ¶
- func CalculateConcurrentWorkers(partSize int64) (n int)
- func CalculatePartSize(size int64) (partSize int64, err error)
- func Copy(src, dest string) (err error)
- func CopyNotSeekableFileToRemote(r io.Reader, objectKey string) (total int64, err error)
- func CopyObjectToNotSeekableFile(w io.Writer, objectKey string) (total int64, err error)
- func Delete(remote string) (err error)
- func MakeBucket(remote string) (err error)
- func ParseDirection(src, dst string) (flow string, err error)
- func ParseFilePathForRead(filePath string) (r io.Reader, err error)
- func ParseFilePathForWrite(filePath string) (w io.Writer, err error)
- func ParseQsPath(remotePath string) (bucketName, objectKey string, err error)
- func Stat(remote string) (err error)
- func StatRemoteObject(objectKey string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateConcurrentWorkers ¶
CalculateConcurrentWorkers will calculate the current workers via limit and part size.
func CalculatePartSize ¶
CalculatePartSize will calculate the object's part size.
func CopyNotSeekableFileToRemote ¶
CopyNotSeekableFileToRemote will copy a not seekable file to remote.
func CopyObjectToNotSeekableFile ¶
CopyObjectToNotSeekableFile will copy an object to not seekable file.
func MakeBucket ¶
MakeBucket will make a bucket with specific name.
func ParseDirection ¶
ParseDirection will parse the data direction
func ParseFilePathForRead ¶
ParseFilePathForRead will parse file path and open an io.Reader for read.
func ParseFilePathForWrite ¶
ParseFilePathForWrite will parse a file path and open an io.Write for write.
func ParseQsPath ¶
ParseQsPath will parse a qs path.
func StatRemoteObject ¶
StatRemoteObject will stat a remote object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.