Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CriticalStop ¶
func CriticalStop(reason string)
CriticalStop is called if the watchdog not be kept alive. A reason must be provided. Such reason will be logged.
func Disable ¶
func Disable() (err error)
Disable will disable the watchdog. When disabled, the watchdog should not cause the system to reboot/rest. Some watchdog plugins may not be able to disable. If so, then an error is reported. If an error is returned, it should be assumed that the watchdog is still running.
func LoadWatchdog ¶
func LoadWatchdog(conf *maestroSpecs.WatchdogConfig) (err error)
LoadWatchdog loads the specified watchdog plugin. Only one watchdog plugin can be run at any given time. There is no way to unload a watchdog. Once loaded the watchdog is active.
func Ok ¶
func Ok()
Ok tells the watchdog everything is ok. Should be called if a problem quickly resolved itself after CriticalStop()