Documentation ¶
Index ¶
Constants ¶
View Source
const DebugTimeout time.Duration = 10
DebugTimeout sets the timeout for how long the debug message is shown before power cycle.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PermissiveRecoverer ¶
type PermissiveRecoverer struct {
RecoveryCommand string
}
PermissiveRecoverer properties RecoveryCommand: unix command with absolute file path
func (PermissiveRecoverer) Recover ¶
func (pr PermissiveRecoverer) Recover(message string) error
Recover logs error message in panic mode. Can jump into a shell for later debugging.
type Recoverer ¶
Recoverer interface offers recovering from critical errors in different ways. Currently permissiverecoverer with log output and securerecovery with shutdown capabilites are supported.
type SecureRecoverer ¶
SecureRecoverer properties Reboot: does a reboot if true Sync: sync file descriptors and devices Debug: enables debug messages
func (SecureRecoverer) Recover ¶
func (sr SecureRecoverer) Recover(message string) error
Recover by reboot or poweroff without or with sync
Click to show internal directories.
Click to hide internal directories.