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 state SyncUp and Waiting SleepUntil time.Time // valid in state Err Error string // valid in state Snapshotting Progress []*ReportFilesystem }
func (*PeriodicReport) Running ¶ added in v0.7.4
func (self *PeriodicReport) Running() time.Duration
type Report ¶ added in v0.7.4
type Report struct { Type Type Periodic *PeriodicReport Manual *struct{} }
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() }
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.