Documentation
¶
Index ¶
Constants ¶
View Source
const ( Disarmed watchdogStatus = iota Armed Triggered Malfunction )
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 // Status shows current watchdog status Status() watchdogStatus // 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
Click to show internal directories.
Click to hide internal directories.