mirror of
https://github.com/kubereboot/kured.git
synced 2026-05-17 13:56:43 +00:00
Without this, you get an error about the lack of package comments. "package-comments: should have a package comment (revive)" Signed-off-by: Jean-Philippe Evrard <open-source@a.spamming.party>
14 lines
602 B
Go
14 lines
602 B
Go
// Package reboot provides mechanisms to trigger node reboots using different
|
|
// methods, like custom commands or signals.
|
|
// Each of those includes constructors and interfaces for handling different reboot
|
|
// strategies, supporting privileged command execution via nsenter for containerized environments.
|
|
package reboot
|
|
|
|
// Rebooter is the standard interface to use to execute
|
|
// the reboot, after it has been considered as necessary.
|
|
// The Reboot method does not expect any return, yet should
|
|
// most likely be refactored in the future to return an error
|
|
type Rebooter interface {
|
|
Reboot() error
|
|
}
|