{"modulePath":"github.com/2lambda123/openshift-origin","version":"v1.5.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package api\n\nPackage api is the internal version of the API.\n\n## Constants\n\n```go\nconst GroupName = \"\"\n```\n\n## Variables\n\n```go\nvar (\n\tSchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)\n\tAddToScheme   = SchemeBuilder.AddToScheme\n)\n```\n\n```go\nvar SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}\n```\n\n## Functions\n\n```go\nfunc ClusterResourceQuotaToSelectableFields(quota *ClusterResourceQuota) fields.Set\n```\n\n```go\nfunc DeepCopy_api_AppliedClusterResourceQuota(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_AppliedClusterResourceQuotaList(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ClusterResourceQuota(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ClusterResourceQuotaList(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ClusterResourceQuotaSelector(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ClusterResourceQuotaSpec(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ClusterResourceQuotaStatus(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc DeepCopy_api_ResourceQuotasStatusByNamespace(in interface{}, out interface{}, c *conversion.Cloner) error\n```\n\n```go\nfunc GetMatcher(selector ClusterResourceQuotaSelector) (func(obj runtime.Object) (bool, error), error)\n```\n\n```go\nfunc Kind(kind string) unversioned.GroupKind\n```\nKind takes an unqualified kind and returns back a Group qualified GroupKind\n\n```go\nfunc RegisterDeepCopies(scheme *runtime.Scheme) error\n```\nRegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.\n\n```go\nfunc Resource(resource string) unversioned.GroupResource\n```\nResource takes an unqualified resource and returns back a Group qualified GroupResource\n\n## Types\n\n```go\ntype AppliedClusterResourceQuota struct {\n\tunversioned.TypeMeta\n\t// Standard object's metadata.\n\tkapi.ObjectMeta\n\n\t// Spec defines the desired quota\n\tSpec ClusterResourceQuotaSpec\n\n\t// Status defines the actual enforced quota and its current usage\n\tStatus ClusterResourceQuotaStatus\n}\n```\nAppliedClusterResourceQuota 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.\n\n```go\nfunc ConvertClusterResourceQuotaToAppliedClusterResourceQuota(in *ClusterResourceQuota) *AppliedClusterResourceQuota\n```\nConvertClusterResourceQuotaToAppliedClusterQuota returns back a converted AppliedClusterResourceQuota which is NOT a deep copy.\n\n```go\nfunc (obj *AppliedClusterResourceQuota) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype AppliedClusterResourceQuotaList struct {\n\tunversioned.TypeMeta\n\t// Standard object's metadata.\n\tunversioned.ListMeta\n\n\t// Items is a list of AppliedClusterResourceQuota\n\tItems []AppliedClusterResourceQuota\n}\n```\nAppliedClusterResourceQuotaList is a collection of AppliedClusterResourceQuotas\n\n```go\nfunc (obj *AppliedClusterResourceQuotaList) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype ClusterResourceQuota struct {\n\tunversioned.TypeMeta\n\t// Standard object's metadata.\n\tkapi.ObjectMeta\n\n\t// Spec defines the desired quota\n\tSpec ClusterResourceQuotaSpec\n\n\t// Status defines the actual enforced quota and its current usage\n\tStatus ClusterResourceQuotaStatus\n}\n```\nClusterResourceQuota mirrors ResourceQuota at a cluster scope.  This object is easily convertible to synthetic ResourceQuota object to allow quota evaluation re-use.\n\n```go\nfunc ConvertAppliedClusterResourceQuotaToClusterResourceQuota(in *AppliedClusterResourceQuota) *ClusterResourceQuota\n```\nConvertClusterResourceQuotaToAppliedClusterQuota returns back a converted AppliedClusterResourceQuota which is NOT a deep copy.\n\n```go\nfunc (obj *ClusterResourceQuota) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\nfunc (obj *ClusterResourceQuota) GetObjectMeta() meta.Object\n```\n\n```go\ntype ClusterResourceQuotaList struct {\n\tunversioned.TypeMeta\n\t// Standard object's metadata.\n\tunversioned.ListMeta\n\n\t// Items is a list of ClusterResourceQuotas\n\tItems []ClusterResourceQuota\n}\n```\nClusterResourceQuotaList is a collection of ClusterResourceQuotas\n\n```go\nfunc (obj *ClusterResourceQuotaList) GetObjectKind() unversioned.ObjectKind\n```\n\n```go\ntype ClusterResourceQuotaSelector struct {\n\t// LabelSelector is used to select projects by label.\n\tLabelSelector *unversioned.LabelSelector\n\n\t// AnnotationSelector is used to select projects by annotation.\n\tAnnotationSelector map[string]string\n}\n```\nClusterResourceQuotaSelector 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.\n\n```go\ntype ClusterResourceQuotaSpec struct {\n\t// Selector is the selector used to match projects.\n\t// It should only select active projects on the scale of dozens (though it can select\n\t// many more less active projects).  These projects will contend on object creation through\n\t// this resource.\n\tSelector ClusterResourceQuotaSelector\n\n\t// Quota defines the desired quota\n\tQuota kapi.ResourceQuotaSpec\n}\n```\nClusterResourceQuotaSpec defines the desired quota restrictions\n\n```go\ntype ClusterResourceQuotaStatus struct {\n\t// Total defines the actual enforced quota and its current usage across all projects\n\tTotal kapi.ResourceQuotaStatus\n\n\t// Namespaces slices the usage by project.  This division allows for quick resolution of\n\t// deletion reconciliation inside of a single project without requiring a recalculation\n\t// across all projects.  This map can be used to pull the deltas for a given project.\n\tNamespaces ResourceQuotasStatusByNamespace\n}\n```\nClusterResourceQuotaStatus defines the actual enforced quota and its current usage\n\n```go\ntype ResourceQuotasStatusByNamespace struct {\n\t// contains filtered or unexported fields\n}\n```\nResourceQuotasStatusByNamespace provides type correct methods\n\n```go\nfunc (o ResourceQuotasStatusByNamespace) DeepCopy() ResourceQuotasStatusByNamespace\n```\nDeepCopy implements a custom copy to correctly handle unexported fields Must match \"func (t T) DeepCopy() T\" for the deep copy generator to use it\n\n```go\nfunc (o *ResourceQuotasStatusByNamespace) Get(key string) (kapi.ResourceQuotaStatus, bool)\n```\n\n```go\nfunc (o *ResourceQuotasStatusByNamespace) Insert(key string, value kapi.ResourceQuotaStatus)\n```\n\n```go\nfunc (o *ResourceQuotasStatusByNamespace) OrderedKeys() *list.List\n```\n\n```go\nfunc (o *ResourceQuotasStatusByNamespace) Remove(key string)\n```\n\n","path":"github.com/2lambda123/openshift-origin/pkg/quota/api","name":"api","synopsis":"Package api is the internal version of the API.","isRedistributable":true}
