/
types.go
31 lines (27 loc) · 957 Bytes
/
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
package types
type KurlNodes struct {
Nodes []Node `json:"nodes"`
HA bool `json:"ha"`
IsKurlEnabled bool `json:"isKurlEnabled"`
}
type Node struct {
Name string `json:"name"`
IsConnected bool `json:"isConnected"`
IsPrimaryNode bool `json:"isPrimaryNode"`
CanDelete bool `json:"canDelete"`
KubeletVersion string `json:"kubeletVersion"`
CPU CapacityAvailable `json:"cpu"`
Memory CapacityAvailable `json:"memory"`
Pods CapacityAvailable `json:"pods"`
Conditions NodeConditions `json:"conditions"`
}
type CapacityAvailable struct {
Capacity float64 `json:"capacity"`
Available float64 `json:"available"`
}
type NodeConditions struct {
MemoryPressure bool `json:"memoryPressure"`
DiskPressure bool `json:"diskPressure"`
PidPressure bool `json:"pidPressure"`
Ready bool `json:"ready"`
}