Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Periodic ¶ added in v0.7.4
type Periodic struct {
// contains filtered or unexported fields
}
func (*Periodic) RunPeriodic ¶ added in v0.7.6
type PeriodicReport ¶ added in v0.7.4
type PeriodicReport struct { CronSpec string State State // valid in states Planning and Snapshotting StartedAt time.Time // valid in state SyncUp and Waiting SleepUntil time.Time // valid in state Err Error string // valid in state Snapshotting Progress []*ReportFilesystem }
func (*PeriodicReport) CompletionProgress ¶ added in v0.8.1
func (self *PeriodicReport) CompletionProgress() (expected, completed uint64)
func (*PeriodicReport) IsTerminal ¶ added in v0.8.1
func (self *PeriodicReport) IsTerminal() bool
func (*PeriodicReport) Running ¶ added in v0.7.4
func (self *PeriodicReport) Running() (d time.Duration, ok bool)
func (*PeriodicReport) SortProgress ¶ added in v0.8.0
func (self *PeriodicReport) SortProgress() []*ReportFilesystem
type Report ¶ added in v0.7.4
type Report struct { Type Type Periodic *PeriodicReport Manual *struct{} }
func (*Report) SleepingUntil ¶ added in v0.8.0
type ReportFilesystem ¶ added in v0.7.4
type Snapper ¶
type Snapper interface { RunPeriodic() bool Run(ctx context.Context, snapshotsTaken chan<- struct{}, cron *cron.Cron) Report() Report Shutdown() Running() (time.Duration, bool) }
func FromConfig ¶
func FromConfig(g *config.Global, fsf zfs.DatasetFilter, in config.SnapshottingEnum) (Snapper, error)
Click to show internal directories.
Click to hide internal directories.