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 + const RebootHaltOp + const RebootPoweroffOp + var EarlyConfig func(st *state.State, preloadGadget func() (sysconfig.Device, *gadget.Info, error)) error + var ErrNoSystems = errors.New("no systems seeds") + var ErrUnsupportedAction = errors.New("unsupported action") + func CanManageRefreshes(st *state.State) bool + func CreateRecoverySystem(st *state.State, label string) (*state.Change, error) + func DeviceCtx(st *state.State, task *state.Task, providedDeviceCtx snapstate.DeviceContext) (snapstate.DeviceContext, error) + func InjectSetModelError(err error) + func InstallFinish(st *state.State, label string, onVolumes map[string]*gadget.Volume) (*state.Change, error) + func InstallSetupStorageEncryption(st *state.State, label string, onVolumes map[string]*gadget.Volume) (*state.Change, error) + func Remodel(st *state.State, new *asserts.Model) (*state.Change, error) + func RemodelingChange(st *state.State) *state.Change + func RemoveUser(st *state.State, username string) (*auth.UserState, error) + func ResetSession(st *state.State) error + type CreatedUser struct + SSHKeys []string + Username string + func CreateKnownUsers(st *state.State, sudoer bool, email string) ([]*CreatedUser, error) + func CreateUser(st *state.State, sudoer bool, email string, expiration time.Time) (*CreatedUser, error) + type DeviceManager struct + func Manager(s *state.State, hookManager *hookstate.HookManager, runner *state.TaskRunner, ...) (*DeviceManager, error) + func (m *DeviceManager) CanStandby() bool + func (m *DeviceManager) Ensure() error + func (m *DeviceManager) EnsureRecoveryKeys() (*client.SystemRecoveryKeysResponse, error) + func (m *DeviceManager) Model() (*asserts.Model, error) + func (m *DeviceManager) Reboot(systemLabel, mode string) error + func (m *DeviceManager) Registered() <-chan struct{} + func (m *DeviceManager) ReloadModeenv() error + func (m *DeviceManager) RemoveRecoveryKeys() error + func (m *DeviceManager) RequestSystemAction(systemLabel string, action SystemAction) error + func (m *DeviceManager) ResetToPostBootState() + func (m *DeviceManager) Serial() (*asserts.Serial, error) + func (m *DeviceManager) StartOfOperationTime() (time.Time, error) + func (m *DeviceManager) StartUp() error + func (m *DeviceManager) StoreContextBackend() storecontext.Backend + func (m *DeviceManager) SystemAndGadgetAndEncryptionInfo(wantedSystemLabel string) (*System, *gadget.Info, *EncryptionSupportInfo, error) + func (m *DeviceManager) SystemMode(sysExpect SysExpectation) string + func (m *DeviceManager) SystemModeInfo() (*SystemModeInfo, error) + func (m *DeviceManager) Systems() ([]*System, error) + func (m *DeviceManager) Unregister(opts *UnregisterOptions) error + type EncryptionSupportInfo struct + Available bool + Disabled bool + StorageSafety asserts.StorageSafety + Type secboot.EncryptionType + UnavailableErr error + UnavailableWarning string + type RebootOptions struct + Op string + type RemodelKind int + const ReregRemodel + const StoreSwitchRemodel + const UpdateRemodel + func ClassifyRemodel(oldModel, newModel *asserts.Model) RemodelKind + func (k RemodelKind) String() string + type SysExpectation int + const SysAny + const SysHasModeenv + type System struct + Actions []SystemAction + Brand *asserts.Account + Current bool + Label string + Model *asserts.Model + type SystemAction struct + Mode string + Title string + type SystemModeInfo struct + BootFlags []string + HasModeenv bool + HostDataLocations []string + Mode string + Seeded bool + func SystemModeInfoFromState(st *state.State) (*SystemModeInfo, error) + type UnregisterOptions struct + NoRegistrationUntilReboot bool + type UserError struct + Err error + func (e *UserError) Error() string