Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceQuotaDetail ¶
type ResourceQuotaDetail struct { ObjectMeta api.ObjectMeta `json:"objectMeta"` TypeMeta api.TypeMeta `json:"typeMeta"` // Scopes defines quota scopes Scopes []v1.ResourceQuotaScope `json:"scopes,omitempty"` // StatusList is a set of (resource name, Used, Hard) tuple. StatusList map[v1.ResourceName]ResourceStatus `json:"statusList,omitempty"` }
ResourceQuotaDetail provides the presentation layer view of Kubernetes Resource Quotas resource.
func ToResourceQuotaDetail ¶
func ToResourceQuotaDetail(rawResourceQuota *v1.ResourceQuota) *ResourceQuotaDetail
type ResourceQuotaDetailList ¶
type ResourceQuotaDetailList struct { ListMeta api.ListMeta `json:"listMeta"` Items []ResourceQuotaDetail `json:"items"` }
ResourceQuotaDetailList provides a set of resource Quotas.
type ResourceStatus ¶
type ResourceStatus struct { Used string `json:"used,omitempty"` Hard string `json:"hard,omitempty"` }
ResourceStatus provides the status of the resource defined by a resource quota.
Click to show internal directories.
Click to hide internal directories.