You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
package response
|
|
|
|
type DiskInfo struct {
|
|
DiskBasicInfo
|
|
Partitions []DiskBasicInfo `json:"partitions"`
|
|
}
|
|
|
|
type DiskBasicInfo struct {
|
|
Device string `json:"device"`
|
|
Size string `json:"size"`
|
|
Model string `json:"model"`
|
|
DiskType string `json:"diskType"`
|
|
IsRemovable bool `json:"isRemovable"`
|
|
IsSystem bool `json:"isSystem"`
|
|
Filesystem string `json:"filesystem"`
|
|
Used string `json:"used"`
|
|
Avail string `json:"avail"`
|
|
UsePercent int `json:"usePercent"`
|
|
MountPoint string `json:"mountPoint"`
|
|
IsMounted bool `json:"isMounted"`
|
|
Serial string `json:"serial"`
|
|
}
|
|
|
|
type CompleteDiskInfo struct {
|
|
Disks []DiskInfo `json:"disks"`
|
|
UnpartitionedDisks []DiskBasicInfo `json:"unpartitionedDisks"`
|
|
SystemDisks []DiskInfo `json:"systemDisks"`
|
|
TotalDisks int `json:"totalDisks"`
|
|
TotalCapacity int64 `json:"totalCapacity"`
|
|
}
|
|
|
|
type MountInfo struct {
|
|
Device string `json:"device"`
|
|
MountPoint string `json:"mountPoint"`
|
|
Filesystem string `json:"filesystem"`
|
|
Options string `json:"options"`
|
|
}
|