hardware

package
v0.0.0-...-a76f865 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatModel

func FormatModel(manufacturer, product, compatible string) string

func GetCompatible

func GetCompatible(log *base.LogObject) string

func GetDeviceBios

func GetDeviceBios(log *base.LogObject) (string, string, string)

Returns BIOS vendor, version, release-date

func GetDeviceManufacturerInfo

func GetDeviceManufacturerInfo(log *base.LogObject) (string, string, string, string, string)

Returns productManufacturer, productName, productVersion, productSerial, productUuid

func GetHardwareModel

func GetHardwareModel(log *base.LogObject) string

GetHardwareModel uses the most current i.e., prefers override from the controller

func GetHardwareModelNoOverride

func GetHardwareModelNoOverride(log *base.LogObject) string

func GetHardwareModelOverride

func GetHardwareModelOverride(log *base.LogObject) string

GetHardwareModelOverride gets any override from the controller

func GetInfoFromNVMeDisk

func GetInfoFromNVMeDisk(diskName string) (*types.DiskSmartInfo, error)

GetInfoFromNVMeDisk - takes a disk name (/dev/sda or /dev/nvme0n1) as input and returns information on it

func GetInfoFromSATAdisk

func GetInfoFromSATAdisk(diskName string) (*types.DiskSmartInfo, error)

GetInfoFromSATAdisk - takes a disk name (/dev/sda or /dev/nvme0n1) as input and returns information on it

func GetInfoFromSCSIDisk

func GetInfoFromSCSIDisk(diskName string) (*types.DiskSmartInfo, error)

GetInfoFromSCSIDisk - takes a disk name (/dev/sda or /dev/nvme0n1) as input and returns information on it

func GetProductSerial

func GetProductSerial(log *base.LogObject) string

func GetSerialNumberForDisk

func GetSerialNumberForDisk(diskName string) (string, error)

GetSerialNumberForDisk takes a disk name (from dev directory, for example /dev/sda or /dev/sda1) as input and return serial number

func GetSoftSerial

func GetSoftSerial(log *base.LogObject) string

GetSoftSerial returns software defined product serial number

func ReadSMARTinfoForDisks

func ReadSMARTinfoForDisks() (*types.DisksInformation, error)

ReadSMARTinfoForDisks - сollects disks information via API, returns types.DisksInformation

Types

This section is empty.

Jump to

Keyboard shortcuts

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