transfers

package
v1.3.25 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SpinnerStyle = []string{"∙∙∙", "●∙∙", "∙●∙", "∙∙●", "∙∙∙"}

Functions

func WaitFileMigration added in v1.3.10

func WaitFileMigration(ctx context.Context, config files_sdk.Config, i interface{}, block bool, noProgress bool, eventLog bool, format string, out io.Writer) (interface{}, error)

Types

type Transfers

type Transfers struct {
	SyncFlag              bool
	SendLogsToCloud       bool
	DisableProgressOutput bool
	ConcurrentFiles       int
	AfterMove             string
	AfterDelete           bool
	Progress              *mpb.Progress

	ETA          ewma.MovingAverage
	TransferRate ewma.MovingAverage
	Ignore       *[]string

	*manager.Manager
	Stdout io.Writer
	Stderr io.Writer
	// contains filtered or unexported fields
}

func New

func New() *Transfers

func (*Transfers) EndingStatusErrors

func (t *Transfers) EndingStatusErrors()

func (*Transfers) FinishMainTotal

func (t *Transfers) FinishMainTotal(job *status.Job)

func (*Transfers) Init

func (t *Transfers) Init(ctx context.Context) *Transfers

func (*Transfers) Log added in v1.2.0

func (t *Transfers) Log(str string, err error)

func (*Transfers) LogJobError

func (t *Transfers) LogJobError(err error, path string)

func (*Transfers) ProcessJob added in v1.2.0

func (t *Transfers) ProcessJob(ctx context.Context, job *status.Job, config files_sdk.Config) error

func (*Transfers) RegisterFileEvents added in v1.2.0

func (t *Transfers) RegisterFileEvents(ctx context.Context, job *status.Job, config files_sdk.Config)

func (*Transfers) SendLogs

func (t *Transfers) SendLogs(ctx context.Context, config files_sdk.Config) error

func (*Transfers) SetupSignals added in v1.1.1679

func (t *Transfers) SetupSignals(job *status.Job)

func (*Transfers) StartLog

func (t *Transfers) StartLog(transferType string)

func (*Transfers) UpdateMainTotal

func (t *Transfers) UpdateMainTotal(job *status.Job)

Jump to

Keyboard shortcuts

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