Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiskInfo ¶
type DiskInfo struct { Name string `json:"name,omitempty"` Model string `json:"model,omitempty"` // Add Model Manufacturer string `json:"manufacturer,omitempty"` ProductName string `json:"product_name,omitempty"` SerialNumber string `json:"serial_number,omitempty"` Size string `json:"size,omitempty"` // Store size as a string cuz of megacli, e.g., "1.090 TB" Slot string `json:"slot,omitempty"` }
DiskInfo represents information about a storage device.
func GetStorageInfo ¶
GetStorageInfo fetches information about the storage devices, handling both simple disks and RAID setups.
Click to show internal directories.
Click to hide internal directories.