/
resource_quota_types.go
33 lines (29 loc) · 1.35 KB
/
resource_quota_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 v3
type ProjectResourceQuota struct {
Limit ResourceQuotaLimit `json:"limit,omitempty"`
UsedLimit ResourceQuotaLimit `json:"usedLimit,omitempty"`
}
type NamespaceResourceQuota struct {
Limit ResourceQuotaLimit `json:"limit,omitempty"`
}
type ResourceQuotaLimit struct {
Pods string `json:"pods,omitempty"`
Services string `json:"services,omitempty"`
ReplicationControllers string `json:"replicationControllers,omitempty"`
Secrets string `json:"secrets,omitempty"`
ConfigMaps string `json:"configMaps,omitempty"`
PersistentVolumeClaims string `json:"persistentVolumeClaims,omitempty"`
ServicesNodePorts string `json:"servicesNodePorts,omitempty"`
ServicesLoadBalancers string `json:"servicesLoadBalancers,omitempty"`
RequestsCPU string `json:"requestsCpu,omitempty"`
RequestsMemory string `json:"requestsMemory,omitempty"`
RequestsStorage string `json:"requestsStorage,omitempty"`
LimitsCPU string `json:"limitsCpu,omitempty"`
LimitsMemory string `json:"limitsMemory,omitempty"`
}
type ContainerResourceLimit struct {
RequestsCPU string `json:"requestsCpu,omitempty"`
RequestsMemory string `json:"requestsMemory,omitempty"`
LimitsCPU string `json:"limitsCpu,omitempty"`
LimitsMemory string `json:"limitsMemory,omitempty"`
}