Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetActiveHddSerial ¶
GetActiveHddSerial get active hard disk serial
Types ¶
type DiskDrive ¶
type DiskDrive struct { Caption string `json:"name"` DeviceID string `json:"device_id"` Model string `json:"model"` Partitions uint `json:"partitions"` Size uint64 `json:"size"` SerialNumber string `json:"serial_number"` Active bool `json:"active"` }
DiskDrive disk drive info struct
type Partition ¶
type Partition struct { Name string `json:"name" csv:"DeviceID"` FileSystem string `json:"file_system"` Size uint64 `json:"size"` FreeSpace uint64 `json:"free_space"` UsedSpace uint64 `json:"used_space"` FreeSpacePercent float64 `json:"free_space_percent"` VolumeSerialNumber string `json:"volume_serial_number"` Active bool `json:"active"` }
Partition partition info struct
func GetActivePartition ¶
GetActivePartition get active partition
Click to show internal directories.
Click to hide internal directories.