Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeriodicOrManual ¶
type PeriodicOrManual struct {
// contains filtered or unexported fields
}
FIXME: properly abstract snapshotting:
- split up things that trigger snapshotting from the mechanism
- timer-based trigger (periodic)
- call from control socket (manual)
- mixed modes?
- support a `zrepl snapshot JOBNAME` subcommand for config.SnapshottingManual
func FromConfig ¶
func FromConfig(g *config.Global, fsf zfs.DatasetFilter, in config.SnapshottingEnum) (*PeriodicOrManual, error)
func (*PeriodicOrManual) Report ¶ added in v0.2.0
func (s *PeriodicOrManual) Report() *Report
Returns nil if manual
func (*PeriodicOrManual) Run ¶
func (s *PeriodicOrManual) Run(ctx context.Context, wakeUpCommon chan<- struct{})
type Report ¶ added in v0.2.0
type Report struct { State State // valid in state SyncUp and Waiting SleepUntil time.Time // valid in state Err Error string // valid in state Snapshotting Progress []*ReportFilesystem }
type ReportFilesystem ¶ added in v0.2.0
type Snapper ¶
type Snapper struct {
// contains filtered or unexported fields
}
func PeriodicFromConfig ¶
func PeriodicFromConfig(g *config.Global, fsf zfs.DatasetFilter, in *config.SnapshottingPeriodic) (*Snapper, error)
Click to show internal directories.
Click to hide internal directories.