Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KernelModules ¶
KernelModules returns vendor-specific kernel modules to load.
Types ¶
type Vendor ¶
type Vendor string
Vendor represents a known hardware vendor.
const ( VendorHPE Vendor = "HPE" VendorLenovo Vendor = "Lenovo" VendorDell Vendor = "Dell Inc." VendorSupermicro Vendor = "Supermicro" VendorGeneric Vendor = "Generic" )
Supported hardware vendors.
func DetectVendor ¶
func DetectVendor() Vendor
DetectVendor reads the system vendor from DMI/SMBIOS sysfs data.
func ParseVendor ¶
ParseVendor maps a raw DMI sys_vendor string to a known Vendor.
Click to show internal directories.
Click to hide internal directories.