Versions in this module Expand all Collapse all v0 v0.1.1 Jul 19, 2026 v0.1.0 Jul 19, 2026 Changes in this version + const DefaultAttempts + const DefaultConnectTimeout + const DefaultMaxConsecutiveConnectFailures + const DefaultRetryDelay + const DefaultStallTimeout + func Upload(ctx context.Context, files []string, endpoints []Endpoint, opts Options) <-chan UploadEvent + type DryRunEvent struct + Endpoint string + Err error + Files int + type Duration time.Duration + func (d Duration) MarshalJSON() ([]byte, error) + type Endpoint struct + Attempts int + ConnectTimeout time.Duration + Host string + InsecureSkipVerify bool + MaxConsecutiveConnectFailures int + Name string + Overwrite OverwriteMode + Password string + Port int + PrivateKey string + Protocol Protocol + RetryDelay time.Duration + StallTimeout time.Duration + Username string + func LoadConfig(path string) ([]Endpoint, error) + type EndpointDoneEvent struct + Elapsed Duration + Endpoint string + Failed int + Succeeded int + type EndpointGivenUpEvent struct + Endpoint string + Reason string + SkippedFiles []string + type EndpointUnreachableEvent struct + ConsecutiveFailures int + Endpoint string + SkippedFiles []string + type FileErrorEvent struct + Attempt int + Endpoint string + Err error + File string + Reason string + type FileStartEvent struct + Attempt int + Endpoint string + File string + type FileSuccessEvent struct + Elapsed Duration + Endpoint string + File string + VerifyMethod string + type Options struct + DryRun bool + NoVerify bool + type OverwriteMode string + const OverwriteDeleteFirst + const OverwriteDirect + type ProgressEvent struct + BytesSent int64 + Endpoint string + File string + TotalBytes int64 + type Protocol string + const ProtocolFTP + const ProtocolFTPS + const ProtocolSFTP + type UploadEvent interface