Documentation ¶
Overview ¶
Package osrelease provides an "os-release" distribution scanner.
Index ¶
Constants ¶
View Source
const ( Path = `etc/os-release` FallbackPath = `usr/lib/os-release` )
Path and FallbackPath are the two documented locations for the os-release file. The latter should be consulted only if the former does not exist.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Scanner ¶
type Scanner struct{}
Scanner implements a indexer.DistributionScanner that examines os-release files, as documented at https://www.freedesktop.org/software/systemd/man/os-release.html
func (*Scanner) Scan ¶
Scan reports any found os-release distribution information in the provided layer.
It's an expected outcome to return (nil, nil) when the os-release file is not present in the layer.
func (*Scanner) Version ¶
Version implements indexer.VersionedScanner.
Click to show internal directories.
Click to hide internal directories.