-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
54 lines (47 loc) · 1.14 KB
/
types.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package proxmox
// BootInfo info about host boot
type BootInfo struct {
Mode string `json:"mode"`
SecureBoot int `json:"secureboot"`
}
// CPUInfo info about host CPU
type CPUInfo struct {
Cores int `json:"cores"`
Cpus int `json:"cpus"`
Flags string `json:"flags"`
Hvm string `json:"hvm"`
Mhz string `json:"mhz"`
Model string `json:"model"`
Sockets int `json:"sockets"`
UserHz int `json:"user_hz"`
}
// CurrentKernel info about host kernel
type CurrentKernel struct {
Machine string `json:"machine"`
Release string `json:"release"`
Sysname string `json:"sysname"`
Version string `json:"version"`
}
// Ksm info about Kernel same-page merging
type Ksm struct {
Shared int `json:"shared"`
}
// Memory info about host memory
type Memory struct {
Free int `json:"free"`
Total int `json:"total"`
Used int `json:"used"`
}
// RootFs info about the host root filesystem
type RootFs struct {
Avail int `json:"avail"`
Free int `json:"free"`
Total int `json:"total"`
Used int `json:"used"`
}
// Swap info about swap
type Swap struct {
Free int `json:"free"`
Total int `json:"total"`
Used int `json:"used"`
}