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
Click to show internal directories.
Click to hide internal directories.