Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckpointPath ¶
CheckpointPath returns the on-disk path for an upload checkpoint.
func Download ¶ added in v0.3.6
func Download(ctx context.Context, source transfer.ReadBackend, guid, dstPath string, opts DownloadOptions) error
func OptimalChunkSize ¶
OptimalChunkSize returns a recommended chunk size for the given file size.
Types ¶
type DownloadOptions ¶ added in v0.3.6
type GenericUploader ¶
type GenericUploader struct {
Backend transfer.MultipartBackend
}
func (*GenericUploader) AbortMultipart ¶ added in v0.3.8
func (u *GenericUploader) AbortMultipart(ctx context.Context, sourcePath, guid string) error
func (*GenericUploader) Upload ¶
func (u *GenericUploader) Upload(ctx context.Context, req transfer.TransferRequest) error
func (*GenericUploader) UploadWithLocation ¶ added in v0.3.8
func (u *GenericUploader) UploadWithLocation(ctx context.Context, req transfer.TransferRequest) (string, error)
UploadWithLocation returns the completed multipart target when the backend supplies it.
Click to show internal directories.
Click to hide internal directories.