Documentation ¶
Overview ¶
Package platform provides symbolic constants for identifiying the operating system / distro and the corresponding package manager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownOS = errors.New("Unknown OS")
Functions ¶
This section is empty.
Types ¶
type System ¶
type System uint8
System represents an operating system
These constants represents the various operating systems we aim to support. For systems that have derivatives, such as Debian, Ubuntu, Raspbian, or RHEL and Rocky Linux or Alma, we just use one constant, because the package manager is going to be the same.
func ParseSystem ¶
ParseSystem attempts to parse the name of an operating system and return the matching System constant.
Click to show internal directories.
Click to hide internal directories.