Documentation ¶
Index ¶
- Variables
- type Command
- type HTTPOption
- type Operator
- func (m *Operator) ConfigureAutoBackup(autoBackupInterval time.Duration, autoBackupBlockFrequency int, ...)
- func (m *Operator) ConfigureAutoSnapshot(autoSnapshotInterval time.Duration, autoSnapshotBlockFrequency int, ...)
- func (m *Operator) ConfigureAutoVolumeSnapshot(autoVolumeSnapshotInterval time.Duration, autoVolumeSnapshotBlockFrequency int, ...)
- func (m *Operator) Launch(startOnLaunch bool, httpListenAddr string, options ...HTTPOption) error
- func (m *Operator) RunAtSpecificBlocks(specificBlocks []uint64, commandName string)
- func (m *Operator) RunEveryPeriod(period time.Duration, commandName string)
- func (m *Operator) RunEveryXBlock(freq uint32, commandName string)
- func (m *Operator) RunHTTPServer(httpListenAddr string, options ...HTTPOption) *http.Server
- func (m *Operator) SetMaintenance()
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCleanExit = errors.New("clean exit")
Functions ¶
This section is empty.
Types ¶
type HTTPOption ¶
type Operator ¶
type Operator struct { *shutter.Shutter ReadyFunc func() // contains filtered or unexported fields }
func (*Operator) ConfigureAutoBackup ¶
func (*Operator) ConfigureAutoSnapshot ¶
func (*Operator) ConfigureAutoVolumeSnapshot ¶
func (*Operator) Launch ¶
func (m *Operator) Launch(startOnLaunch bool, httpListenAddr string, options ...HTTPOption) error
func (*Operator) RunAtSpecificBlocks ¶
func (*Operator) RunEveryPeriod ¶
RunEveryPeriod will skip a run if Nodeos is NOT alive when period expired.
func (*Operator) RunEveryXBlock ¶
func (*Operator) RunHTTPServer ¶
func (m *Operator) RunHTTPServer(httpListenAddr string, options ...HTTPOption) *http.Server
func (*Operator) SetMaintenance ¶
func (m *Operator) SetMaintenance()
type Options ¶
type Options struct { BackupTag string BackupStoreURL string SnapshotStoreURL string VolumeSnapshotAppVer string Namespace string //k8s namespace Pod string //k8s podname PVCPrefix string Project string //gcp project BootstrapDataURL string AutoRestoreSource string NumberOfSnapshotsToKeep int RestoreBackupName string RestoreSnapshotName string Profiler *profiler.Profiler StartFailureHandlerFunc func() EnableSupervisorMonitoring bool // Delay before shutting manager when sigterm received ShutdownDelay time.Duration ReadyFunc func() }
Click to show internal directories.
Click to hide internal directories.