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()
Click to show internal directories.
Click to hide internal directories.