Documentation ¶
Index ¶
- func InstallEssentialSnaps(c *check.C, st *state.State, base string, gadgetFiles [][]string, ...)
- func InstallSnap(c *check.C, st *state.State, yaml string, files [][]string, si *snap.SideInfo, ...) *snap.Info
- func MockDeviceContext(deviceCtx snapstate.DeviceContext) (restore func())
- func MockDeviceModel(model *asserts.Model) (restore func())
- func MockDeviceModelAndMode(model *asserts.Model, systemMode string) (restore func())
- func NewSequenceFromRevisionSideInfos(revsSideInfo []*sequence.RevisionSideState) sequence.SnapSequence
- func NewSequenceFromSnapSideInfos(snapSideInfo []*snap.SideInfo) sequence.SnapSequence
- func ReplaceDeviceCtxHook(...) (restore func())
- func ReplaceRemodelingHook(remodelingHook func(st *state.State) *state.Change) (restore func())
- func UseFallbackDeviceModel() (restore func())
- type InstallSnapOptions
- type MockRestartHandler
- type TrivialDeviceContext
- func (dc *TrivialDeviceContext) Base() string
- func (dc *TrivialDeviceContext) Classic() bool
- func (dc *TrivialDeviceContext) ForRemodeling() bool
- func (dc *TrivialDeviceContext) Gadget() string
- func (dc *TrivialDeviceContext) GroundContext() snapstate.DeviceContext
- func (dc *TrivialDeviceContext) HasModeenv() bool
- func (d *TrivialDeviceContext) IsClassicBoot() bool
- func (d *TrivialDeviceContext) IsCoreBoot() 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 InstallEssentialSnaps ¶
func InstallEssentialSnaps(c *check.C, st *state.State, base string, gadgetFiles [][]string, bloader bootloader.Bootloader)
func InstallSnap ¶
func MockDeviceContext ¶
func MockDeviceContext(deviceCtx snapstate.DeviceContext) (restore func())
func MockDeviceModel ¶
func MockDeviceModelAndMode ¶
func NewSequenceFromRevisionSideInfos ¶
func NewSequenceFromRevisionSideInfos(revsSideInfo []*sequence.RevisionSideState) sequence.SnapSequence
func NewSequenceFromSnapSideInfos ¶
func NewSequenceFromSnapSideInfos(snapSideInfo []*snap.SideInfo) sequence.SnapSequence
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 InstallSnapOptions ¶
type MockRestartHandler ¶
type MockRestartHandler func(restart.RestartType)
MockRestartHandler mocks a restart.Handler based on a function to witness the restart requests.
func (MockRestartHandler) HandleRestart ¶
func (h MockRestartHandler) HandleRestart(t restart.RestartType, rebootInfo *boot.RebootInfo)
func (MockRestartHandler) RebootAsExpected ¶
func (h MockRestartHandler) RebootAsExpected(*state.State) error
func (MockRestartHandler) RebootDidNotHappen ¶
func (h MockRestartHandler) RebootDidNotHappen(*state.State) error
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) Gadget ¶
func (dc *TrivialDeviceContext) Gadget() string
func (*TrivialDeviceContext) GroundContext ¶
func (dc *TrivialDeviceContext) GroundContext() snapstate.DeviceContext
func (*TrivialDeviceContext) HasModeenv ¶
func (dc *TrivialDeviceContext) HasModeenv() bool
func (*TrivialDeviceContext) IsClassicBoot ¶
func (d *TrivialDeviceContext) IsClassicBoot() bool
func (*TrivialDeviceContext) IsCoreBoot ¶
func (d *TrivialDeviceContext) IsCoreBoot() 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.