Documentation ¶
Index ¶
Constants ¶
const InitChkconfig = "chkconfig"
InitChkconfig uses identifier for chkconfig init system (RHEL)
const InitDocker = "docker"
InitDocker uses docker identifier for systems running inside of docker Those systems typically don't use the system init system and instead using a shell (bash, sh), a supervisor (runit, supervisord) or just a arbitrary command as pid1. Any service control would not work as for systems outside of docker.
const InitLaunchd = "launchd"
InitLaunchd uses launchd for mac os x init system
const InitOpenrc = "openrc"
InitOpenrc uses identifier for openrc init system (Gentoo)
const InitService = "service"
InitService uses identifier for undetected init systems but available `service` command to start/stop/restart services
const InitSystemd = "systemd"
InitSystemd uses identifier for systemd init system
const InitUpdatercd = "updatercd"
InitUpdatercd uses Ohai identifier for update-rc.d init system (Debian)
const InitUpstart = "upstart"
InitUpstart uses identifier for upstart init system
const InitWindows = "windows"
InitWindows uses windows identifier for windows init system
const PackageManagerAlpine = "alpine"
PackageManagerAlpine is used on Alpine Linux
const PackageManagerApt = "apt"
PackageManagerApt is used on Debian platform families (ubuntu, mate, ...)
const PackageManagerDnf = "dnf"
PackageManagerDnf is used on Fedora
const PackageManagerEmerge = "emerge"
PackageManagerEmerge is used on Gentoo platform families (Gentoo, Funtoo, ...)
const PackageManagerMac = "mac_os_x"
PackageManagerMac is always `mac_os_x` when running on Mac OS X. There are multiple competing package formates (.pkg, .dmg, brew, ...) so it depends on the use case.
const PackageManagerPacman = "pacman"
PackageManagerPacman is used on ArchLinux
const PackageManagerWindows = "windows"
PackageManagerWindows is always `windows` when running on Windows systems. There are multiple competing package formates (.msi, .exe, chocolatey, ...) so it depends on the use case.
const PackageManagerYum = "yum"
PackageManagerYum is used on RHEL platform families (centos, red hat, amazon, ...)
const PackageManagerZipper = "zypper"
PackageManagerZipper is used on SuSe platform families (OpenSuse, SLES, ...)
const PlatformAlmaLinux = "almalinux"
PlatformAlmaLinux uses Ohai identifier for alma linux platform
const PlatformAlpine = "alpine"
PlatformAlpine uses Ohai identifier for alpine platform
const PlatformAmazon = "amazon"
PlatformAmazon uses Ohai identifier for amazon platform
const PlatformArch = "arch"
PlatformArch uses Ohai identifier for arch platform
const PlatformBottlerocket = "bottlerocket"
PlatformBottlerocket uses Ohai identifier for bottlerocket platform
const PlatformCentos = "centos"
PlatformCentos uses Ohai identifier for centos platform
const PlatformDarwin = "mac_os_x"
PlatformDarwin uses Ohai identifier for darwin platform
const PlatformDebian = "debian"
PlatformDebian uses Ohai identifier for debian platform
const PlatformFamilyAlpine = "alpine"
PlatformFamilyAlpine uses Ohai identifier for alpine platform family
const PlatformFamilyArch = "arch"
PlatformFamilyArch uses Ohai identifier for arch linux platform family
const PlatformFamilyDarwin = "mac_os_x"
PlatformFamilyDarwin uses Ohai identifier for darwin platform family
const PlatformFamilyDebian = "debian"
PlatformFamilyDebian uses Ohai identifier for debian platform family
const PlatformFamilyFedora = "fedora"
PlatformFamilyFedora uses Ohai identifier for fedora platform family
const PlatformFamilyGentoo = "gentoo"
PlatformFamilyGentoo uses Ohai identifier for gentoo linux platform family
const PlatformFamilyRhel = "rhel"
PlatformFamilyRhel uses Ohai identifier for rhel platform family
const PlatformFamilySuse = "suse"
PlatformFamilySuse uses Ohai identifier for opensuse platform family
const PlatformFamilyWindows = "windows"
PlatformFamilyWindows uses Ohai identifier for windows platform family
const PlatformFedora = "fedora"
PlatformFedora uses Ohai identifier for fedora platform
const PlatformFlatcar = "flatcar"
PlatformFlatcar uses Ohai identifier for flatcar platform
const PlatformGentoo = "gentoo"
PlatformGentoo uses Ohai identifier for gentoo platform
const PlatformOpensuse = "opensuse"
PlatformOpensuse uses Ohai identifier for opensuse platform version < 42
const PlatformOpensuseLeap = "opensuseleap"
PlatformOpensuseLeap uses Ohai identifier for amazon platform version >= 42
const PlatformOracleLinux = "oracle"
PlatformOracleLinux uses Ohai identifier for oracle linux platform
const PlatformRaspbian = "raspbian"
PlatformRaspbian uses Ohai identifier for raspbian platform
const PlatformRedhat = "redhat"
PlatformRedhat uses Ohai identifier for redhat platform
const PlatformRockyLinux = "rocky"
PlatformRockyLinux uses ohai identifier for rocky linux platform
const PlatformSuse = "suse"
PlatformSuse uses Ohai identifier for suse platform
const PlatformUbuntu = "ubuntu"
PlatformUbuntu uses Ohai identifier for ubuntu platform
const PlatformWindows = "windows"
PlatformWindows uses Ohai identifier for windows platform
const SKUProductDatacenterNanoServer uint32 = 143
OperatingSystemSKUs to denote Windows Nano installations
const SKUProductStandardNanoServer uint32 = 144
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.