Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OnClassic bool
OnClassic states whether the process is running inside a classic Ubuntu system or a native Ubuntu Core image.
View Source
var Series = "16"
Series holds the Ubuntu Core series for snapd to use.
Functions ¶
func MockOnClassic ¶
func MockOnClassic(onClassic bool) (restore func())
MockOnClassic forces the process to appear inside a classic Ubuntu system or a native image for testing purposes.
func MockReleaseInfo ¶
func MockReleaseInfo(osRelease *OS) (restore func())
MockReleaseInfo fakes a given information to appear in ReleaseInfo, as if it was read /etc/os-release on startup.
Types ¶
type OS ¶
OS contains information about the system extracted from /etc/os-release.
var ReleaseInfo OS
ReleaseInfo contains data loaded from /etc/os-release on startup.
func (*OS) ForceDevMode ¶
ForceDevMode returns true if the distribution doesn't implement required security features for confinement and devmode is forced.
Click to show internal directories.
Click to hide internal directories.