watchdog

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watchdog

type Watchdog interface {
	// Start should be called by the manager and block on the given context
	Start(ctx context.Context) error
	// IsStarted return if the watchdog is running
	IsStarted() bool
	// Stop stops feeding the watchdog, which results in a reboot of the node
	Stop()
	// GetTimeout returns the watchdog timeout when it reboots the node without feeding
	GetTimeout() time.Duration
	// LastFoodTime return the last time the watchdog was fed
	LastFoodTime() time.Time
}

Watchdog is the public facing interface for the watchdog

func NewFake

func NewFake(log logr.Logger) (Watchdog, error)

func NewLinux

func NewLinux(log logr.Logger) (Watchdog, error)

Jump to

Keyboard shortcuts

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