Documentation ¶
Overview ¶
Package linux contains Linux-specific pieces of interrogation which are nonetheless testable on arbitrary platforms.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GPUs ¶
func GPUs(ctx context.Context, lspciOutput string, versionGetters VendorsToVersionGetters) ([]string, error)
GPUs returns a slice of Swarming-style descriptors of all the GPUs on the host, in all precisions: "vendorID", "vendorID-deviceID", and, if detectable, "vendorID-deviceID-driverVersion". nvidiaVersionGetter is a thunk that returns the version of the installed Nvidia driver. intelVersionGetter is similar but for the Intel driver.
func OSVersions ¶
func VendorAndBrand ¶
VendorAndBrand returns the vendor and brand string of the first encountered CPU in the provided contents of /proc/cpuinfo. Extraction may fail and they may be empty--those are valid values--even if error is nil.