Documentation ¶
Overview ¶
Package reboot provides a function to reboot the system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotRoot = errors.New("must be run as sudo/root")
Functions ¶
Types ¶
type OpOption ¶
type OpOption func(*Op)
func WithDelaySeconds ¶ added in v0.0.5
Specifies the delay seconds before rebooting. Useful for the remote server to get the response from a GPUd daemon.
Click to show internal directories.
Click to hide internal directories.