linux

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package linux is implementing the interface github.com/colonel-byte/cargoship/src/types/os.Configurer for Linux based hosts

Index

Constants

View Source
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"
)
View Source
const (
	// OSKindOpenSUSE id
	OSKindOpenSUSE = "opensuse"
	// OSKindOpenSUSEMicro id
	OSKindOpenSUSEMicro = "opensuse-microos"
)
View Source
const (
	// OSKindAlpine id
	OSKindAlpine = "alpine"
)
View Source
const (
	// OSKindArch id
	OSKindArch = "arch"
)
View Source
const (
	// OSKindCoreOS id
	OSKindCoreOS = "CoreOS"
)
View Source
const (
	// OSKindDebian id
	OSKindDebian = "debian"
)
View Source
const (
	// OSKindFlatcar id
	OSKindFlatcar = "flatcar"
)
View Source
const (
	// OSKindSLES id
	OSKindSLES = "sles"
)
View Source
const (
	// OSKindSlackware id
	OSKindSlackware = "slackware"
)
View Source
const (
	// OSKindUbuntu id
	OSKindUbuntu = "ubuntu"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Alpine

type Alpine struct {
	os.Linux
	BaseLinux
}

Alpine provides OS support for Alpine Linux

func (*Alpine) InstallPackage

func (l *Alpine) InstallPackage(h os.Host, pkg ...string) error

InstallPackage installs packages via apk

func (*Alpine) Prepare

func (l *Alpine) Prepare(h os.Host) error

Prepare will install required packages

func (*Alpine) UninstallPackage

func (l *Alpine) UninstallPackage(h os.Host, pkg ...string) error

UninstallPackage installs packages via apk

type Archlinux

type Archlinux struct {
	linux.Archlinux
	configurer.Linux
}

Archlinux provides OS support for Archlinux systems

func (Archlinux) UninstallPackage

func (c Archlinux) UninstallPackage(h os.Host, s ...string) error

UninstallPackage installs packages via pacman

type BaseLinux

type BaseLinux struct {
	configurer.Linux
}

BaseLinux for tricking go interfaces

type CoreOS

type CoreOS struct {
	os.Linux
	BaseLinux
}

CoreOS provides OS support for ostree based Fedora & RHEL systems

func (*CoreOS) InstallPackage

func (l *CoreOS) InstallPackage(_ os.Host, _ ...string) error

InstallPackage installs packages but will throw an error

func (*CoreOS) UninstallPackage

func (l *CoreOS) UninstallPackage(_ os.Host, _ ...string) error

UninstallPackage uninstalls packages but will throw an error

type Debian

type Debian struct {
	linux.Debian
	configurer.Linux
}

Debian provides OS support for Debian systems

func (Debian) UninstallPackage

func (c Debian) UninstallPackage(h os.Host, s ...string) error

UninstallPackage uninstalls packages via apt-get

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

type Flatcar struct {
	BaseLinux
	os.Linux
}

Flatcar provides OS support for Flatcar systems

func (*Flatcar) InstallPackage

func (l *Flatcar) InstallPackage(_ os.Host, _ ...string) error

InstallPackage installs packages but will throw an error

func (*Flatcar) UninstallPackage

func (l *Flatcar) UninstallPackage(_ os.Host, _ ...string) error

UninstallPackage installs packages but will throw an error

type OpenSUSE

type OpenSUSE struct {
	SLES
}

OpenSUSE provides OS support for OpenSUSE

type SLES

type SLES struct {
	linux.SLES
	os.Linux
	BaseLinux
}

SLES provides OS support for Suse SUSE Linux Enterprise Server

func (SLES) UninstallPackage

func (c SLES) UninstallPackage(h os.Host, s ...string) error

UninstallPackage uninstalls packages via zypper

type Slackware

type Slackware struct {
	BaseLinux
	os.Linux
}

Slackware provides OS support for Slackware Linux

func (*Slackware) InstallPackage

func (l *Slackware) InstallPackage(h os.Host, pkg ...string) error

InstallPackage installs packages via slackpkg

func (*Slackware) UninstallPackage

func (l *Slackware) UninstallPackage(h os.Host, pkg ...string) error

UninstallPackage remove packages via slackpkg

type Ubuntu

type Ubuntu struct {
	Debian
}

Ubuntu provides OS support for Ubuntu systems

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL