Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttemptReport ¶
type AttemptReport struct { State AttemptState StartAt, FinishAt time.Time PlanError *TimedError Filesystems []*FilesystemReport }
func (*AttemptReport) BytesSum ¶
func (a *AttemptReport) BytesSum() (expected, replicated int64, containsInvalidSizeEstimates bool)
func (*AttemptReport) FilesystemsByState ¶
func (f *AttemptReport) FilesystemsByState() map[FilesystemState][]*FilesystemReport
type AttemptState ¶
type AttemptState string
const ( AttemptPlanning AttemptState = "planning" AttemptPlanningError AttemptState = "planning-error" AttemptFanOutFSs AttemptState = "fan-out-filesystems" AttemptFanOutError AttemptState = "filesystem-error" AttemptDone AttemptState = "done" )
type EncryptedEnum ¶ added in v0.3.0
type EncryptedEnum string
const ( EncryptedTrue EncryptedEnum = "yes" EncryptedFalse EncryptedEnum = "no" EncryptedSenderDependent EncryptedEnum = "sender-dependent" )
type FilesystemInfo ¶
type FilesystemInfo struct {
Name string
}
type FilesystemReport ¶
type FilesystemReport struct { Info *FilesystemInfo State FilesystemState // Valid in State = FilesystemPlanningErrored PlanError *TimedError // Valid in State = FilesystemSteppingErrored StepError *TimedError // Valid in State = FilesystemStepping CurrentStep int Steps []*StepReport }
func (*FilesystemReport) BytesSum ¶
func (f *FilesystemReport) BytesSum() (expected, replicated int64, containsInvalidSizeEstimates bool)
func (*FilesystemReport) Error ¶
func (f *FilesystemReport) Error() *TimedError
func (*FilesystemReport) NextStep ¶
func (f *FilesystemReport) NextStep() *StepReport
may return nil
type FilesystemState ¶
type FilesystemState string
const ( FilesystemPlanning FilesystemState = "planning" FilesystemPlanningErrored FilesystemState = "planning-error" FilesystemStepping FilesystemState = "stepping" FilesystemSteppingErrored FilesystemState = "step-error" FilesystemDone FilesystemState = "done" )
type Report ¶
type Report struct {
StartAt, FinishAt time.Time
WaitReconnectSince, WaitReconnectUntil time.Time
WaitReconnectError *TimedError
Attempts []*AttemptReport
}
func (*Report) GetFailedFilesystemsCountInLatestAttempt ¶ added in v0.3.0
Returns, for the latest replication attempt, 0 if there have not been any replication attempts, -1 if the replication failed while enumerating file systems N if N filesystems could not not be replicated successfully
type StepInfo ¶
type StepInfo struct {
From, To string
Resumed bool
Encrypted EncryptedEnum
BytesExpected int64
BytesReplicated int64
}
type StepReport ¶
type StepReport struct {
Info *StepInfo
}
func (*StepReport) IsIncremental ¶
func (f *StepReport) IsIncremental() bool
type TimedError ¶
func NewTimedError ¶
func NewTimedError(err string, t time.Time) *TimedError
func (*TimedError) Error ¶
func (s *TimedError) Error() string
Click to show internal directories.
Click to hide internal directories.