Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶ added in v0.4.0
type FS ¶
type FS interface { // Returns true if this FS and fs refer to the same filesystem returned // by Planner.Plan in a previous attempt. EqualToPreviousAttempt(fs FS) bool // The returned steps are assumed to be dependent on exactly // their direct predecessors in the returned list. PlanFS(context.Context) ([]Step, error) ReportInfo() *report.FilesystemInfo }
type ReportFunc ¶
type Step ¶
type Step interface { // Returns true iff the target snapshot is the same for this Step and other. // We do not use TargetDate to avoid problems with wrong system time on // snapshot creation. // // Implementations can assume that `other` is a step of the same filesystem, // although maybe from a previous attempt. // (`same` as defined by FS.EqualToPreviousAttempt) // // Note that TargetEquals should return true in a situation with one // originally sent snapshot and a subsequent attempt's step that uses // resumable send & recv. TargetEquals(other Step) bool TargetDate() time.Time Step(context.Context) error ReportInfo() *report.StepInfo }
type StepCompletedFunc ¶
type StepCompletedFunc func()
Click to show internal directories.
Click to hide internal directories.