snapper

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLogger

func WithLogger(ctx context.Context, log Logger) context.Context

Types

type Logger

type Logger = logger.Logger

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 (*PeriodicOrManual) Run

func (s *PeriodicOrManual) Run(ctx context.Context, wakeUpCommon chan<- struct{})

type SnapState

type SnapState uint
const (
	SnapPending SnapState = 1 << iota
	SnapStarted
	SnapDone
	SnapError
)

func (SnapState) String

func (i SnapState) String() string

type Snapper

type Snapper struct {
	// contains filtered or unexported fields
}

func (*Snapper) Run

func (s *Snapper) Run(ctx context.Context, snapshotsTaken chan<- struct{})

type State

type State uint
const (
	SyncUp State = 1 << iota
	SyncUpErrWait
	Planning
	Snapshotting
	Waiting
	ErrorWait
	Stopped
)

func (State) String

func (i State) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL