dmidecode

package
v0.0.0-...-f44e450 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BIOSInfo

type BIOSInfo struct {
	Vendor      string
	Version     string
	ReleaseDate string
	Revision    string
}

type DMITable

type DMITable struct {
	*dmidecode.DMITable
}

DMITable is a parsed DMI table.

func DMITableFromFirmware

func DMITableFromFirmware(fw *uefi.UEFI) (*DMITable, error)

DMITableFromFirmware returns a DMI table parsed from the parsed firmware.

func DMITableFromFirmwareImage

func DMITableFromFirmwareImage(imageBytes []byte) (*DMITable, error)

DMITableFromFirmwareImage returns a DMI table parsed from the image.

func DMITableFromSMBIOSData

func DMITableFromSMBIOSData(smbiosReader io.Reader) (*DMITable, error)

DMITableFromSMBIOSData returns a parsed instance on DMI table based only on SMBIOS data passes as `smbiosReader` argument.

func LocalDMITable

func LocalDMITable() (*DMITable, error)

LocalDMITable returns the local DMI table (on Linux it is parsed from `sysfs`) .

func (*DMITable) BIOSInfo

func (dmit *DMITable) BIOSInfo() BIOSInfo

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

type SystemInfo

type SystemInfo struct {
	SystemManufacturer string
	SystemProductName  string
	SystemVersion      string
	SystemSerialNumber string
	SystemUUID         string
	SystemFamily       string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL