Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUInfo ¶
type CPUInfo struct {
Manufacturer string `json:"manufacturer"`
SocketDesignation string `json:"socket_designation"`
Version string `json:"version"`
CoreCount uint8 `json:"core_count"`
ThreadCount uint8 `json:"thread_count"`
}
CPUInfo holds the details of a CPU.
func GetCPUInfo ¶
GetCPUInfo fetches and returns the CPU information as a list.
type ChassisInfo ¶
type ChassisInfo struct {
Version string `json:"version"`
SerialNumber string `json:"serial_number"`
Height string `json:"height"`
Manufacturer string `json:"manufacturer"`
}
ChassisInfo holds the details of the chassis.
func GetChassisInfo ¶
func GetChassisInfo() ([]ChassisInfo, error)
GetChassisInfo fetches and returns the chassis information as a list.
type MemoryDeviceInfo ¶
type MemoryDeviceInfo struct {
Size uint16 `json:"size"`
FormFactor string `json:"form_factor"`
Speed uint16 `json:"speed"`
Type string `json:"type"`
Manufacturer string `json:"manufacturer"`
SerialNumber string `json:"serial_number"`
AssetTag string `json:"asset_tag"`
PartNumber string `json:"part_number"`
DeviceLocator string `json:"device_locator"`
}
MemoryDeviceInfo holds the details of a memory device.
func GetMemoryDevices ¶
func GetMemoryDevices() ([]MemoryDeviceInfo, error)
GetMemoryDevices fetches and returns the memory device information as a list.
type SystemInfo ¶
type SystemInfo struct {
Manufacturer string `json:"manufacturer"`
ProductName string `json:"product_name"`
Version string `json:"version"`
SerialNumber string `json:"serial_number"`
LocationInChassis string `json:"location_in_chassis"`
}
SystemInfo holds the details of the system.
func GetSystemInfo ¶
func GetSystemInfo() ([]SystemInfo, error)
GetSystemInfo fetches and returns the system and baseboard information.
Click to show internal directories.
Click to hide internal directories.