Versions in this module Expand all Collapse all v0 v0.0.310 Jun 15, 2022 Changes in this version + func Add(a corev1.ResourceList, b corev1.ResourceList) corev1.ResourceList + func CalculateUsage(namespaceName string, scopes []corev1.ResourceQuotaScope, ...) (corev1.ResourceList, error) + func Contains(items []corev1.ResourceName, item corev1.ResourceName) bool + func ContainsPrefix(prefixSet []string, item corev1.ResourceName) bool + func Difference(a []corev1.ResourceName, b []corev1.ResourceName) []corev1.ResourceName + func Equals(a corev1.ResourceList, b corev1.ResourceList) bool + func Intersection(a []corev1.ResourceName, b []corev1.ResourceName) []corev1.ResourceName + func IsNegative(a corev1.ResourceList) []corev1.ResourceName + func IsZero(a corev1.ResourceList) bool + func LessThanOrEqual(a corev1.ResourceList, b corev1.ResourceList) (bool, []corev1.ResourceName) + func Mask(resources corev1.ResourceList, names []corev1.ResourceName) corev1.ResourceList + func Max(a corev1.ResourceList, b corev1.ResourceList) corev1.ResourceList + func ResourceNames(resources corev1.ResourceList) []corev1.ResourceName + func Subtract(a corev1.ResourceList, b corev1.ResourceList) corev1.ResourceList + func SubtractWithNonNegativeResult(a corev1.ResourceList, b corev1.ResourceList) corev1.ResourceList + func ToSet(resourceNames []corev1.ResourceName) sets.String + type Configuration interface + Evaluators func() []Evaluator + IgnoredResources func() map[schema.GroupResource]struct{} + type Evaluator interface + Constraints func(required []corev1.ResourceName, item runtime.Object) error + GroupResource func() schema.GroupResource + Handles func(operation admission.Attributes) bool + Matches func(resourceQuota *corev1.ResourceQuota, item runtime.Object) (bool, error) + MatchingResources func(input []corev1.ResourceName) []corev1.ResourceName + MatchingScopes func(item runtime.Object, scopes []corev1.ScopedResourceSelectorRequirement) ([]corev1.ScopedResourceSelectorRequirement, error) + UncoveredQuotaScopes func(limitedScopes []corev1.ScopedResourceSelectorRequirement, ...) ([]corev1.ScopedResourceSelectorRequirement, error) + Usage func(item runtime.Object) (corev1.ResourceList, error) + UsageStats func(options UsageStatsOptions) (UsageStats, error) + type ListerForResourceFunc func(schema.GroupVersionResource) (cache.GenericLister, error) + type Registry interface + Add func(e Evaluator) + Get func(gr schema.GroupResource) Evaluator + List func() []Evaluator + Remove func(e Evaluator) + type UsageStats struct + Used corev1.ResourceList + type UsageStatsOptions struct + Namespace string + Resources []corev1.ResourceName + ScopeSelector *corev1.ScopeSelector + Scopes []corev1.ResourceQuotaScope