Documentation ¶
Index ¶
- func MockDeviceContext(deviceCtx snapstate.DeviceContext) (restore func())
- func MockDeviceModel(model *asserts.Model) (restore func())
- func ReplaceDeviceCtxHook(...) (restore func())
- func ReplaceRemodelingHook(remodelingHook func(st *state.State) bool) (restore func())
- func UseFallbackDeviceModel() (restore func())
- type TrivialDeviceContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockDeviceContext ¶
func MockDeviceContext(deviceCtx snapstate.DeviceContext) (restore func())
func MockDeviceModel ¶
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 Remodeling bool CtxStore snapstate.StoreService }
func (*TrivialDeviceContext) ForRemodeling ¶
func (dc *TrivialDeviceContext) ForRemodeling() bool
func (*TrivialDeviceContext) Model ¶
func (dc *TrivialDeviceContext) Model() *asserts.Model
func (*TrivialDeviceContext) Store ¶
func (dc *TrivialDeviceContext) Store() snapstate.StoreService
Click to show internal directories.
Click to hide internal directories.