Documentation ¶
Index ¶
- func FormatModel(manufacturer, product, compatible string) string
- func GetCompatible(log *base.LogObject) string
- func GetDeviceBios(log *base.LogObject) (string, string, string)
- func GetDeviceManufacturerInfo(log *base.LogObject) (string, string, string, string, string)
- func GetHardwareModel(log *base.LogObject) string
- func GetHardwareModelNoOverride(log *base.LogObject) string
- func GetHardwareModelOverride(log *base.LogObject) string
- func GetInfoFromNVMeDisk(diskName string) (*types.DiskSmartInfo, error)
- func GetInfoFromSATAdisk(diskName string) (*types.DiskSmartInfo, error)
- func GetInfoFromSCSIDisk(diskName string) (*types.DiskSmartInfo, error)
- func GetProductSerial(log *base.LogObject) string
- func GetSerialNumberForDisk(diskName string) (string, error)
- func GetSoftSerial(log *base.LogObject) string
- func ReadSMARTinfoForDisks() (*types.DisksInformation, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatModel ¶
func GetCompatible ¶
func GetDeviceBios ¶
Returns BIOS vendor, version, release-date
func GetDeviceManufacturerInfo ¶
Returns productManufacturer, productName, productVersion, productSerial, productUuid
func GetHardwareModel ¶
GetHardwareModel uses the most current i.e., prefers override from the controller
func GetHardwareModelOverride ¶
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 GetSerialNumberForDisk ¶
GetSerialNumberForDisk takes a disk name (from dev directory, for example /dev/sda or /dev/sda1) as input and return serial number
func GetSoftSerial ¶
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.