Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine interface {
Upload(ctx context.Context, localPath, remotePath string, progress ProgressFunc) (*Result, error)
Download(ctx context.Context, remotePath, localPath string, progress ProgressFunc) (*Result, error)
UploadRecursive(ctx context.Context, localDir, remoteDir string, progress ProgressFunc) (*Result, error)
DownloadRecursive(ctx context.Context, remoteDir, localDir string, progress ProgressFunc) (*Result, error)
OpenRead(ctx context.Context, remotePath string) (io.ReadCloser, int64, error)
OpenWrite(ctx context.Context, remotePath string) (io.WriteCloser, func() error, func(), error)
Close() error
Name() string
}
type ParsedArgs ¶
func ParseArgs ¶
func ParseArgs(src, dst string) (ParsedArgs, error)
type ProgressFunc ¶
type ProgressFunc func(info ProgressInfo)
type ProgressInfo ¶
type ProgressTracker ¶
type ProgressTracker struct {
// contains filtered or unexported fields
}
func NewProgressTracker ¶
func NewProgressTracker(file string, total int64, callback ProgressFunc) *ProgressTracker
func (*ProgressTracker) Finish ¶
func (t *ProgressTracker) Finish()
func (*ProgressTracker) Update ¶
func (t *ProgressTracker) Update(n int)
Click to show internal directories.
Click to hide internal directories.