Documentation ¶
Overview ¶
Package snapdenv presents common environment (and related) options for snapd components.
Index ¶
- func MockPreseeding(preseeding bool) (restore func())
- func MockTesting(testing bool) (restore func())
- func MockUseStagingStore(useStaging bool) (restore func())
- func Preseeding() bool
- func SetUserAgentFromVersion(version string, probeForceDevMode func() bool, extraProds ...string) (restore func())
- func Testing() bool
- func UseStagingStore() bool
- func UserAgent() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockPreseeding ¶
func MockPreseeding(preseeding bool) (restore func())
func MockTesting ¶
func MockTesting(testing bool) (restore func())
func MockUseStagingStore ¶
func MockUseStagingStore(useStaging bool) (restore func())
func Preseeding ¶
func Preseeding() bool
Preseeding returns whether snapd is preseeding, i.e. performing a partial first boot updating only filesystem state inside a chroot.
func SetUserAgentFromVersion ¶
func SetUserAgentFromVersion(version string, probeForceDevMode func() bool, extraProds ...string) (restore func())
SetUserAgentFromVersion sets up a user-agent string.
func UseStagingStore ¶
func UseStagingStore() bool
UseStagingStore returns whether snapd compontents should use the staging store.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.