distributions

package
v1.19.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 5 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
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

Jump to

Keyboard shortcuts

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