Documentation ¶
Overview ¶
+groupName=quota.openshift.io Package api is the internal version of the API.
Index ¶
- Constants
- Variables
- func ConvertV1AppliedClusterResourceQuotaToV1ClusterResourceQuota(in *quotav1.AppliedClusterResourceQuota) *quotav1.ClusterResourceQuota
- func ConvertV1ClusterResourceQuotaToV1AppliedClusterResourceQuota(in *quotav1.ClusterResourceQuota) *quotav1.AppliedClusterResourceQuota
- func Resource(resource string) schema.GroupResource
- type AppliedClusterResourceQuota
- type AppliedClusterResourceQuotaList
- type ClusterResourceQuota
- type ClusterResourceQuotaList
- type ClusterResourceQuotaSelector
- type ClusterResourceQuotaSpec
- type ClusterResourceQuotaStatus
- type ResourceQuotasStatusByNamespace
- func (o ResourceQuotasStatusByNamespace) DeepCopy() ResourceQuotasStatusByNamespace
- func (in *ResourceQuotasStatusByNamespace) DeepCopyInto(out *ResourceQuotasStatusByNamespace)
- func (o *ResourceQuotasStatusByNamespace) Get(key string) (core.ResourceQuotaStatus, bool)
- func (o *ResourceQuotasStatusByNamespace) Insert(key string, value core.ResourceQuotaStatus)
- func (o *ResourceQuotasStatusByNamespace) OrderedKeys() *list.List
- func (o *ResourceQuotasStatusByNamespace) Remove(key string)
Constants ¶
const (
GroupName = "quota.openshift.io"
)
Variables ¶
var ( Install = schemeBuilder.AddToScheme // DEPRECATED kept for generated code SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} // DEPRECATED kept for generated code AddToScheme = schemeBuilder.AddToScheme )
Functions ¶
func ConvertV1AppliedClusterResourceQuotaToV1ClusterResourceQuota ¶
func ConvertV1AppliedClusterResourceQuotaToV1ClusterResourceQuota(in *quotav1.AppliedClusterResourceQuota) *quotav1.ClusterResourceQuota
ConvertV1AppliedClusterResourceQuotaToV1ClusterResourceQuota returns back a converted AppliedClusterResourceQuota which is NOT a deep copy.
func ConvertV1ClusterResourceQuotaToV1AppliedClusterResourceQuota ¶
func ConvertV1ClusterResourceQuotaToV1AppliedClusterResourceQuota(in *quotav1.ClusterResourceQuota) *quotav1.AppliedClusterResourceQuota
ConvertClusterResourceQuotaToAppliedClusterQuota returns back a converted AppliedClusterResourceQuota which is NOT a deep copy.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource kept for generated code DEPRECATED
Types ¶
type AppliedClusterResourceQuota ¶
type AppliedClusterResourceQuota struct { metav1.TypeMeta // Standard object's metadata. metav1.ObjectMeta // Spec defines the desired quota Spec ClusterResourceQuotaSpec // Status defines the actual enforced quota and its current usage Status ClusterResourceQuotaStatus }
AppliedClusterResourceQuota mirrors ClusterResourceQuota at a project scope, for projection into a project. It allows a project-admin to know which ClusterResourceQuotas are applied to his project and their associated usage.
func (*AppliedClusterResourceQuota) DeepCopy ¶
func (in *AppliedClusterResourceQuota) DeepCopy() *AppliedClusterResourceQuota
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppliedClusterResourceQuota.
func (*AppliedClusterResourceQuota) DeepCopyInto ¶
func (in *AppliedClusterResourceQuota) DeepCopyInto(out *AppliedClusterResourceQuota)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppliedClusterResourceQuota) DeepCopyObject ¶
func (in *AppliedClusterResourceQuota) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AppliedClusterResourceQuotaList ¶
type AppliedClusterResourceQuotaList struct { metav1.TypeMeta // Standard object's metadata. metav1.ListMeta // Items is a list of AppliedClusterResourceQuota Items []AppliedClusterResourceQuota }
AppliedClusterResourceQuotaList is a collection of AppliedClusterResourceQuotas
func (*AppliedClusterResourceQuotaList) DeepCopy ¶
func (in *AppliedClusterResourceQuotaList) DeepCopy() *AppliedClusterResourceQuotaList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppliedClusterResourceQuotaList.
func (*AppliedClusterResourceQuotaList) DeepCopyInto ¶
func (in *AppliedClusterResourceQuotaList) DeepCopyInto(out *AppliedClusterResourceQuotaList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppliedClusterResourceQuotaList) DeepCopyObject ¶
func (in *AppliedClusterResourceQuotaList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterResourceQuota ¶
type ClusterResourceQuota struct { metav1.TypeMeta // Standard object's metadata. metav1.ObjectMeta // Spec defines the desired quota Spec ClusterResourceQuotaSpec // Status defines the actual enforced quota and its current usage Status ClusterResourceQuotaStatus }
ClusterResourceQuota mirrors ResourceQuota at a cluster scope. This object is easily convertible to synthetic ResourceQuota object to allow quota evaluation re-use.
func ConvertAppliedClusterResourceQuotaToClusterResourceQuota ¶
func ConvertAppliedClusterResourceQuotaToClusterResourceQuota(in *AppliedClusterResourceQuota) *ClusterResourceQuota
ConvertClusterResourceQuotaToAppliedClusterQuota returns back a converted AppliedClusterResourceQuota which is NOT a deep copy.
func (*ClusterResourceQuota) DeepCopy ¶
func (in *ClusterResourceQuota) DeepCopy() *ClusterResourceQuota
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceQuota.
func (*ClusterResourceQuota) DeepCopyInto ¶
func (in *ClusterResourceQuota) DeepCopyInto(out *ClusterResourceQuota)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterResourceQuota) DeepCopyObject ¶
func (in *ClusterResourceQuota) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterResourceQuotaList ¶
type ClusterResourceQuotaList struct { metav1.TypeMeta // Standard object's metadata. metav1.ListMeta // Items is a list of ClusterResourceQuotas Items []ClusterResourceQuota }
ClusterResourceQuotaList is a collection of ClusterResourceQuotas
func (*ClusterResourceQuotaList) DeepCopy ¶
func (in *ClusterResourceQuotaList) DeepCopy() *ClusterResourceQuotaList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceQuotaList.
func (*ClusterResourceQuotaList) DeepCopyInto ¶
func (in *ClusterResourceQuotaList) DeepCopyInto(out *ClusterResourceQuotaList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterResourceQuotaList) DeepCopyObject ¶
func (in *ClusterResourceQuotaList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterResourceQuotaSelector ¶
type ClusterResourceQuotaSelector struct { // LabelSelector is used to select projects by label. LabelSelector *metav1.LabelSelector // AnnotationSelector is used to select projects by annotation. AnnotationSelector map[string]string }
ClusterResourceQuotaSelector is used to select projects. At least one of LabelSelector or AnnotationSelector must present. If only one is present, it is the only selection criteria. If both are specified, the project must match both restrictions.
func (*ClusterResourceQuotaSelector) DeepCopy ¶
func (in *ClusterResourceQuotaSelector) DeepCopy() *ClusterResourceQuotaSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceQuotaSelector.
func (*ClusterResourceQuotaSelector) DeepCopyInto ¶
func (in *ClusterResourceQuotaSelector) DeepCopyInto(out *ClusterResourceQuotaSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterResourceQuotaSpec ¶
type ClusterResourceQuotaSpec struct { // Selector is the selector used to match projects. // It should only select active projects on the scale of dozens (though it can select // many more less active projects). These projects will contend on object creation through // this resource. Selector ClusterResourceQuotaSelector // Quota defines the desired quota Quota core.ResourceQuotaSpec }
ClusterResourceQuotaSpec defines the desired quota restrictions
func (*ClusterResourceQuotaSpec) DeepCopy ¶
func (in *ClusterResourceQuotaSpec) DeepCopy() *ClusterResourceQuotaSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceQuotaSpec.
func (*ClusterResourceQuotaSpec) DeepCopyInto ¶
func (in *ClusterResourceQuotaSpec) DeepCopyInto(out *ClusterResourceQuotaSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterResourceQuotaStatus ¶
type ClusterResourceQuotaStatus struct { // Total defines the actual enforced quota and its current usage across all projects Total core.ResourceQuotaStatus // Namespaces slices the usage by project. This division allows for quick resolution of // deletion reconciliation inside of a single project without requiring a recalculation // across all projects. This map can be used to pull the deltas for a given project. Namespaces ResourceQuotasStatusByNamespace }
ClusterResourceQuotaStatus defines the actual enforced quota and its current usage
func (*ClusterResourceQuotaStatus) DeepCopy ¶
func (in *ClusterResourceQuotaStatus) DeepCopy() *ClusterResourceQuotaStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceQuotaStatus.
func (*ClusterResourceQuotaStatus) DeepCopyInto ¶
func (in *ClusterResourceQuotaStatus) DeepCopyInto(out *ClusterResourceQuotaStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceQuotasStatusByNamespace ¶
type ResourceQuotasStatusByNamespace struct {
// contains filtered or unexported fields
}
ResourceQuotasStatusByNamespace provides type correct methods
func (ResourceQuotasStatusByNamespace) DeepCopy ¶
func (o ResourceQuotasStatusByNamespace) DeepCopy() ResourceQuotasStatusByNamespace
DeepCopy implements a custom copy to correctly handle unexported fields Must match "func (t T) DeepCopy() T" for the deep copy generator to use it
func (*ResourceQuotasStatusByNamespace) DeepCopyInto ¶
func (in *ResourceQuotasStatusByNamespace) DeepCopyInto(out *ResourceQuotasStatusByNamespace)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceQuotasStatusByNamespace) Get ¶
func (o *ResourceQuotasStatusByNamespace) Get(key string) (core.ResourceQuotaStatus, bool)
func (*ResourceQuotasStatusByNamespace) Insert ¶
func (o *ResourceQuotasStatusByNamespace) Insert(key string, value core.ResourceQuotaStatus)
func (*ResourceQuotasStatusByNamespace) OrderedKeys ¶
func (o *ResourceQuotasStatusByNamespace) OrderedKeys() *list.List
func (*ResourceQuotasStatusByNamespace) Remove ¶
func (o *ResourceQuotasStatusByNamespace) Remove(key string)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
+groupName=quota.openshift.io Package v1 is the v1 version of the API.
|
+groupName=quota.openshift.io Package v1 is the v1 version of the API. |