Documentation
¶
Index ¶
- Variables
- type BackupModule
- type BackupSchedule
- type Bootstrapper
- type Command
- type HTTPOption
- type ListableBackupModule
- type Operator
- func (o *Operator) Launch(httpListenAddr string, options ...HTTPOption) error
- func (o *Operator) LaunchBackupSchedules()
- func (o *Operator) RegisterBackupModule(name string, mod BackupModule) error
- func (o *Operator) RegisterBackupSchedule(sched *BackupSchedule)
- func (o *Operator) RunEveryPeriod(period time.Duration, commandName string, params map[string]string)
- func (o *Operator) RunEveryXBlock(freq uint32, commandName string, params map[string]string)
- func (o *Operator) RunHTTPServer(httpListenAddr string, options ...HTTPOption) *http.Server
- type Options
- type RestorableBackupModule
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCleanExit = errors.New("clean exit")
Functions ¶
This section is empty.
Types ¶
type BackupModule ¶ added in v0.6.1
type BackupSchedule ¶ added in v0.6.1
type BackupSchedule struct {
BlocksBetweenRuns int
TimeBetweenRuns time.Duration
RequiredHostnameMatch string // will not run backup if !empty env.Hostname != HostnameMatch
BackuperName string // must match id of backupModule
}
func NewBackupSchedule ¶ added in v0.6.1
func NewBackupSchedule(freqBlocks, freqTime, requiredHostname, backuperName string) (*BackupSchedule, error)
type Bootstrapper ¶ added in v0.6.1
type Bootstrapper interface {
Bootstrap() error
}
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func (*Command) MarshalLogObject ¶ added in v0.6.1
func (c *Command) MarshalLogObject(encoder zapcore.ObjectEncoder) error
type HTTPOption ¶
type ListableBackupModule ¶ added in v0.6.1
type ListableBackupModule interface {
BackupModule
List(params map[string]string) ([]string, error)
}
type Operator ¶
type Operator struct {
*shutter.Shutter
Superviser nodeManager.ChainSuperviser
// contains filtered or unexported fields
}
func New ¶
func New(zlogger *zap.Logger, chainSuperviser nodeManager.ChainSuperviser, chainReadiness nodeManager.Readiness, options *Options) (*Operator, error)
func (*Operator) Launch ¶
func (o *Operator) Launch(httpListenAddr string, options ...HTTPOption) error
func (*Operator) LaunchBackupSchedules ¶ added in v0.6.1
func (o *Operator) LaunchBackupSchedules()
func (*Operator) RegisterBackupModule ¶ added in v0.6.1
func (o *Operator) RegisterBackupModule(name string, mod BackupModule) error
func (*Operator) RegisterBackupSchedule ¶ added in v0.6.1
func (o *Operator) RegisterBackupSchedule(sched *BackupSchedule)
func (*Operator) RunEveryPeriod ¶
func (*Operator) RunEveryXBlock ¶
func (*Operator) RunHTTPServer ¶
func (o *Operator) RunHTTPServer(httpListenAddr string, options ...HTTPOption) *http.Server
type Options ¶
type Options struct {
Bootstrapper Bootstrapper
EnableSupervisorMonitoring bool
// Delay before sending Stop() to superviser, during which we return NotReady
ShutdownDelay time.Duration
}
type RestorableBackupModule ¶ added in v0.6.1
type RestorableBackupModule interface {
BackupModule
Restore(name string) error
}
Click to show internal directories.
Click to hide internal directories.