Documentation ¶
Index ¶
- func MockDeviceContext(deviceCtx snapstate.DeviceContext) (restore func())
- func MockDeviceModel(model *asserts.Model) (restore func())
- func MockDeviceModelAndMode(model *asserts.Model, systemMode string) (restore func())
- func ReplaceDeviceCtxHook(...) (restore func())
- func ReplaceRemodelingHook(remodelingHook func(st *state.State) bool) (restore func())
- func UseFallbackDeviceModel() (restore func())
- type TrivialDeviceContext
- func (dc *TrivialDeviceContext) Base() string
- func (dc *TrivialDeviceContext) Classic() bool
- func (dc *TrivialDeviceContext) ForRemodeling() bool
- func (dc *TrivialDeviceContext) GroundContext() snapstate.DeviceContext
- func (dc *TrivialDeviceContext) HasModeenv() bool
- func (dc *TrivialDeviceContext) Kernel() string
- func (dc *TrivialDeviceContext) Model() *asserts.Model
- func (dc *TrivialDeviceContext) RunMode() bool
- func (dc *TrivialDeviceContext) Store() snapstate.StoreService
- func (dc *TrivialDeviceContext) SystemMode() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockDeviceContext ¶
func MockDeviceContext(deviceCtx snapstate.DeviceContext) (restore func())
func MockDeviceModel ¶
func MockDeviceModelAndMode ¶
func ReplaceDeviceCtxHook ¶
func ReplaceDeviceCtxHook(deviceCtxHook func(st *state.State, task *state.Task, providedDeviceCtx snapstate.DeviceContext) (snapstate.DeviceContext, error)) (restore func())
func ReplaceRemodelingHook ¶
func UseFallbackDeviceModel ¶
func UseFallbackDeviceModel() (restore func())
Types ¶
type TrivialDeviceContext ¶
type TrivialDeviceContext struct { DeviceModel *asserts.Model OldDeviceModel *asserts.Model Remodeling bool CtxStore snapstate.StoreService SysMode string Ground bool }
func (*TrivialDeviceContext) Base ¶
func (dc *TrivialDeviceContext) Base() string
func (*TrivialDeviceContext) Classic ¶
func (dc *TrivialDeviceContext) Classic() bool
func (*TrivialDeviceContext) ForRemodeling ¶
func (dc *TrivialDeviceContext) ForRemodeling() bool
func (*TrivialDeviceContext) GroundContext ¶
func (dc *TrivialDeviceContext) GroundContext() snapstate.DeviceContext
func (*TrivialDeviceContext) HasModeenv ¶
func (dc *TrivialDeviceContext) HasModeenv() bool
func (*TrivialDeviceContext) Kernel ¶
func (dc *TrivialDeviceContext) Kernel() string
func (*TrivialDeviceContext) Model ¶
func (dc *TrivialDeviceContext) Model() *asserts.Model
func (*TrivialDeviceContext) RunMode ¶
func (dc *TrivialDeviceContext) RunMode() bool
func (*TrivialDeviceContext) Store ¶
func (dc *TrivialDeviceContext) Store() snapstate.StoreService
func (*TrivialDeviceContext) SystemMode ¶
func (dc *TrivialDeviceContext) SystemMode() string
Click to show internal directories.
Click to hide internal directories.