Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Distribution ¶
type Distribution string
const ( DistributionDebian9 Distribution = "stretch" DistributionDebian10 Distribution = "buster" DistributionUbuntu1604 Distribution = "xenial" DistributionUbuntu1804 Distribution = "bionic" DistributionUbuntu2004 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
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 ¶
func (d Distribution) IsUbuntu() bool
Click to show internal directories.
Click to hide internal directories.