Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Distribution ¶
type Distribution int
Distribution represents the linux distribution
const ( // AlpineLinux refers to alpine linux distributions AlpineLinux Distribution // DebianLinux refers to debian linux distributions DebianLinux // UbuntuLinux refers to ubuntu linux distributions UbuntuLinux // FedoraLinux refers to fedora linux distributions FedoraLinux // GenericLinux refers to a generic linux distribution GenericLinux )
func ParseDistributionID ¶
func ParseDistributionID(id string) Distribution
ParseDistributionID parses a distribution id
func (Distribution) String ¶
func (d Distribution) String() string
type OSRelease ¶
type OSRelease struct { ID Distribution Name string PrettyName string Version string VersionCodename string Extra map[string]string }
OSRelease represents system information https://www.freedesktop.org/software/systemd/man/os-release.html
func ParseOSRelease ¶
ParseOSRelease parses an os-release find
Click to show internal directories.
Click to hide internal directories.