Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Level = 2
Level is the current implemented patch level of the state format and content.
Functions ¶
func Apply ¶
Apply applies any necessary patches to update the provided state to conventions required by the current patch level of the system.
Types ¶
type OldSnapSetup ¶
type OldSnapSetup struct { Name string `json:"name,omitempty"` Revision snap.Revision `json:"revision,omitempty"` Channel string `json:"channel,omitempty"` UserID int `json:"user-id,omitempty"` Flags snapstate.SnapSetupFlags `json:"flags,omitempty"` SnapPath string `json:"snap-path,omitempty"` DownloadInfo *snap.DownloadInfo `json:"download-info,omitempty"` SideInfo *snap.SideInfo `json:"side-info,omitempty"` }
type OldSnapState ¶
type OldSnapState struct { SnapType string `json:"type"` // Use Type and SetType Sequence []*snap.SideInfo `json:"sequence"` Active bool `json:"active,omitempty"` // Current indicates the current active revision if Active is // true or the last active revision if Active is false // (usually while a snap is being operated on or disabled) Current snap.Revision `json:"current"` Candidate *snap.SideInfo `json:"candidate,omitempty"` Channel string `json:"channel,omitempty"` Flags snapstate.SnapStateFlags `json:"flags,omitempty"` // incremented revision used for local installs LocalRevision snap.Revision `json:"local-revision,omitempty"` }
Click to show internal directories.
Click to hide internal directories.