Documentation ¶
Overview ¶
Package dmi reads DMI (aka SMBIOS) data via dmidecode.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Entries ¶
Return all entries for a given dmi type, same format as produced by 'dmidecode -t <n>'.
func Field ¶
return data for line matching fieldName in given struct type fieldName must be all non-whitespace chars at beginning of desired line, i.e. "SKU Number:". Using "SKU" would result in the returned string beginning with "Number: "
func TestingMock ¶
func TestingMock(s DmiStrMap, t DmiTypeMap)
effectively mocks this package by pre-populating the cache and only allowing cache lookups
Types ¶
type DmiTypeMap ¶
Click to show internal directories.
Click to hide internal directories.