osrelease

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 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 OsReleaseNamespaceDetector

type OsReleaseNamespaceDetector struct{}

OsReleaseNamespaceDetector implements NamespaceDetector and detects the OS from the /etc/os-release and usr/lib/os-release files.

func (*OsReleaseNamespaceDetector) Detect

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

Detect tries to detect OS/Version using "/etc/os-release" and "/usr/lib/os-release" Typically for Debian / Ubuntu /etc/debian_version can't be used, it does not make any difference between testing and unstable, it returns stretch/sid

func (*OsReleaseNamespaceDetector) GetRequiredFiles

func (detector *OsReleaseNamespaceDetector) 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