-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathtypes.go
33 lines (29 loc) · 1.03 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
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"`
IsReady bool `json:"isReady"`
IsPrimaryNode bool `json:"isPrimaryNode"`
CanDelete bool `json:"canDelete"`
KubeletVersion string `json:"kubeletVersion"`
CPU CapacityAvailable `json:"cpu"`
Memory CapacityAvailable `json:"memory"`
Pods CapacityAvailable `json:"pods"`
Labels []string `json:"labels"`
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"`
}