snapstatetest

package
v2.42.5-go-mod+incompa... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockDeviceContext

func MockDeviceContext(deviceCtx snapstate.DeviceContext) (restore func())

func MockDeviceModel

func MockDeviceModel(model *asserts.Model) (restore func())

func ReplaceDeviceCtxHook

func ReplaceDeviceCtxHook(deviceCtxHook func(st *state.State, task *state.Task, providedDeviceCtx snapstate.DeviceContext) (snapstate.DeviceContext, error)) (restore func())

func ReplaceRemodelingHook

func ReplaceRemodelingHook(remodelingHook func(st *state.State) bool) (restore func())

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL