Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2022 v0.0.1 Nov 10, 2022 Changes in this version + func ClearReboot(st *state.State) + func ReplaceBootID(st *state.State, bootID string) + func Request(st *state.State, t RestartType, rebootInfo *boot.RebootInfo) + type Handler interface + HandleRestart func(t RestartType, rebootInfo *boot.RebootInfo) + RebootAsExpected func(st *state.State) error + RebootDidNotHappen func(st *state.State) error + type RestartManager struct + func Manager(st *state.State, curBootID string, h Handler) (*RestartManager, error) + func (m *RestartManager) Ensure() error + type RestartType int + const RestartDaemon + const RestartSocket + const RestartSystem + const RestartSystemHaltNow + const RestartSystemNow + const RestartSystemPoweroffNow + const RestartUnset + const StopDaemon + func MockPending(st *state.State, restarting RestartType) RestartType + func Pending(st *state.State) (bool, RestartType)