Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DMITable ¶
type DMITable struct {
*dmidecode.DMITable
}
DMITable is a parsed DMI table.
func DMITableFromFirmware ¶
DMITableFromFirmware returns a DMI table parsed from the parsed firmware.
func DMITableFromFirmwareImage ¶
DMITableFromFirmwareImage returns a DMI table parsed from the image.
func DMITableFromSMBIOSData ¶
DMITableFromSMBIOSData returns a parsed instance on DMI table based only on SMBIOS data passes as `smbiosReader` argument.
func LocalDMITable ¶
LocalDMITable returns the local DMI table (on Linux it is parsed from `sysfs`) .
func (*DMITable) SystemInfo ¶
func (dmit *DMITable) SystemInfo() SystemInfo
type ErrDMITable ¶
type ErrDMITable struct {
Err error
}
func (ErrDMITable) Error ¶
func (err ErrDMITable) Error() string
func (ErrDMITable) Unwrap ¶
func (err ErrDMITable) Unwrap() error
type ErrFindSMBIOSInFirmware ¶
type ErrFindSMBIOSInFirmware struct {
Err error
}
ErrFindSMBIOSInFirmware means SMBIOS static data section was not found.
func (ErrFindSMBIOSInFirmware) Error ¶
func (err ErrFindSMBIOSInFirmware) Error() string
func (ErrFindSMBIOSInFirmware) Unwrap ¶
func (err ErrFindSMBIOSInFirmware) Unwrap() error
type ErrParseFirmware ¶
type ErrParseFirmware struct {
Err error
}
ErrParseFirmware means a problem while parsing a firmware image.
func (ErrParseFirmware) Error ¶
func (err ErrParseFirmware) Error() string
func (ErrParseFirmware) Unwrap ¶
func (err ErrParseFirmware) Unwrap() error
type ErrUnexpectedNodeType ¶
type ErrUnexpectedNodeType struct {
Obj any
}
ErrUnexpectedNodeType means firmware has an unexpected node type.
func (ErrUnexpectedNodeType) Error ¶
func (err ErrUnexpectedNodeType) Error() string
Click to show internal directories.
Click to hide internal directories.