-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdisk.go
24 lines (22 loc) · 832 Bytes
/
disk.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package rpi
// Disk represents a current host disk.
type Disk struct {
ID string `json:"id"`
Filesystem string `json:"filesystem"`
Fstype string `json:"fstype"`
Mountpoints []MountPoint `json:"mountpoints"`
}
// MountPoint represents a current host mountpoint stats.
type MountPoint struct {
Mountpoint string `json:"mountpoint"`
Fstype string `json:"fstype"`
Opts string `json:"opts"`
Total uint64 `json:"total"`
Free uint64 `json:"free"`
Used uint64 `json:"used"`
UsedPercent float64 `json:"usedPercent"`
InodesTotal uint64 `json:"inodesTotal"`
InodesUsed uint64 `json:"inodesUsed"`
InodesFree uint64 `json:"inodesFree"`
InodesUsedPercent float64 `json:"inodesUsedPercent"`
}