redhatrelease

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2016 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 RedhatReleaseNamespaceDetector

type RedhatReleaseNamespaceDetector struct{}

RedhatReleaseNamespaceDetector implements NamespaceDetector and detects the OS from the /etc/centos-release, /etc/redhat-release and /etc/system-release files.

Typically for CentOS and Red-Hat like systems eg. CentOS release 5.11 (Final) eg. CentOS release 6.6 (Final) eg. CentOS Linux release 7.1.1503 (Core) eg. Red Hat Enterprise Linux Server release 7.2 (Maipo)

func (*RedhatReleaseNamespaceDetector) Detect

func (detector *RedhatReleaseNamespaceDetector) Detect(data map[string][]byte) *database.Namespace

func (*RedhatReleaseNamespaceDetector) GetRequiredFiles

func (detector *RedhatReleaseNamespaceDetector) GetRequiredFiles() []string

GetRequiredFiles returns the list of files that are required for Detect()

Jump to

Keyboard shortcuts

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