Documentation
¶
Overview ¶
Package detect gathers system facts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CurrentUser = user.Current
CurrentUser resolves the OS account of the running process. It is a package-level var so tests can stub the lookup (root-vs-user, failures).
Functions ¶
func DetectWith ¶
func DetectWith(osReader OSReleaseReader, gpuReader GPUReader) (*facts.Facts, error)
DetectWith returns system facts using the provided readers.
Types ¶
type OSReleaseReader ¶
OSReleaseReader reads /etc/os-release content.
Click to show internal directories.
Click to hide internal directories.