Documentation
¶
Overview ¶
Package linux is implementing the interface github.com/colonel-byte/cargoship/src/types/os.Configurer for Linux based hosts
Index ¶
Constants ¶
const ( // OSKindELAlma id OSKindELAlma = "almalinux" // OSKindELAmazon id OSKindELAmazon = "amzn" // OSKindELCent id OSKindELCent = "centos" // OSKindELFedora id OSKindELFedora = "fedora" // OSKindELOracle id OSKindELOracle = "ol" // OSKindELRedHat id OSKindELRedHat = "rhel" // OSKindELRocky id OSKindELRocky = "rocky" )
const ( // OSKindOpenSUSE id OSKindOpenSUSE = "opensuse" // OSKindOpenSUSEMicro id OSKindOpenSUSEMicro = "opensuse-microos" )
const (
// OSKindAlpine id
OSKindAlpine = "alpine"
)
const (
// OSKindArch id
OSKindArch = "arch"
)
const (
// OSKindCoreOS id
OSKindCoreOS = "CoreOS"
)
const (
// OSKindDebian id
OSKindDebian = "debian"
)
const (
// OSKindFlatcar id
OSKindFlatcar = "flatcar"
)
const (
// OSKindSLES id
OSKindSLES = "sles"
)
const (
// OSKindSlackware id
OSKindSlackware = "slackware"
)
const (
// OSKindUbuntu id
OSKindUbuntu = "ubuntu"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alpine ¶
Alpine provides OS support for Alpine Linux
func (*Alpine) ApplySysctl ¶ added in v0.20.0
ApplySysctl loads the settings in the file at path. Alpine's sysctl is the busybox applet, which has no --system: it takes one or more files with -p and knows nothing about the /etc/sysctl.d load order the base implementation relies on. Only the file cargoship wrote is applied, so a setting another file overrides keeps whatever value that file gave it until the host next boots and reads them all in order.
func (*Alpine) InstallPackage ¶
InstallPackage installs packages via apk
type Archlinux ¶
type Archlinux struct {
linux.Archlinux
configurer.Linux
}
Archlinux provides OS support for Archlinux systems
type CoreOS ¶
CoreOS provides OS support for ostree based Fedora & RHEL systems
func (*CoreOS) InstallPackage ¶
InstallPackage installs packages but will throw an error
type Debian ¶
type Debian struct {
linux.Debian
configurer.Linux
}
Debian provides OS support for Debian systems
func (Debian) PreferredFirewall ¶ added in v0.20.0
PreferredFirewall reports that Debian ships ufw as its firewall front end. Ubuntu inherits it.
type EnterpriseLinux ¶
type EnterpriseLinux struct {
linux.EnterpriseLinux
configurer.Linux
}
EnterpriseLinux is a base package for several RHEL-like enterprise linux distributions
func (*EnterpriseLinux) InstallPackage ¶
func (c *EnterpriseLinux) InstallPackage(h os.Host, s ...string) error
InstallPackage installs packages via dnf
func (*EnterpriseLinux) UninstallPackage ¶
func (c *EnterpriseLinux) UninstallPackage(h os.Host, s ...string) error
UninstallPackage uninstalls packages via dnf
type Flatcar ¶
Flatcar provides OS support for Flatcar systems
func (*Flatcar) InstallPackage ¶
InstallPackage installs packages but will throw an error
type SLES ¶
SLES provides OS support for Suse SUSE Linux Enterprise Server
func (SLES) PreferredFirewall ¶ added in v0.20.0
PreferredFirewall reports that SLES ships firewalld as its firewall front end. OpenSUSE inherits it.
type Slackware ¶
Slackware provides OS support for Slackware Linux
func (*Slackware) InstallPackage ¶
InstallPackage installs packages via slackpkg
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package enterpriselinux is implementing the interface github.com/colonel-byte/cargoship/src/types/os.Configurer for Enterprise Linux hosts
|
Package enterpriselinux is implementing the interface github.com/colonel-byte/cargoship/src/types/os.Configurer for Enterprise Linux hosts |