distros

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Distribution

type Distribution string
var (
	DistributionDebian9      Distribution = "debian9"
	DistributionDebian10     Distribution = "buster"
	DistributionXenial       Distribution = "xenial"
	DistributionBionic       Distribution = "bionic"
	DistributionFocal        Distribution = "focal"
	DistributionAmazonLinux2 Distribution = "amazonlinux2"
	DistributionRhel7        Distribution = "rhel7"
	DistributionCentos7      Distribution = "centos7"
	DistributionRhel8        Distribution = "rhel8"
	DistributionCentos8      Distribution = "centos8"
	DistributionFlatcar      Distribution = "flatcar"
	DistributionContainerOS  Distribution = "containeros"
)

func FindDistribution

func FindDistribution(rootfs string) (Distribution, error)

FindDistribution identifies the distribution on which we are running We will likely remove this when everything is containerized

func (Distribution) BuildTags

func (d Distribution) BuildTags() []string

func (Distribution) IsDebianFamily

func (d Distribution) IsDebianFamily() bool

func (Distribution) IsRHELFamily

func (d Distribution) IsRHELFamily() bool

func (Distribution) IsSystemd

func (d Distribution) IsSystemd() bool

func (Distribution) IsUbuntu added in v1.15.1

func (d Distribution) IsUbuntu() bool

Jump to

Keyboard shortcuts

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