osrelease

package
v5.0.0-preview.1+incom... Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 4 Imported by: 3

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

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