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 scanner.DistributionScanner that examines os-release files, as documented at https://www.freedesktop.org/software/systemd/man/os-release.html
Click to show internal directories.
Click to hide internal directories.