type InformerForResourceFunc …
func ListerFuncForResourceFunc(f InformerForResourceFunc) quota.ListerForResourceFunc { … }
func cachedHasSynced(hasSynced func() bool) func() bool { … }
type protectedLister …
func (p *protectedLister) List(selector labels.Selector) (ret []runtime.Object, err error) { … }
func (p *protectedLister) Get(name string) (runtime.Object, error) { … }
func (p *protectedLister) ByNamespace(namespace string) cache.GenericNamespaceLister { … }
type protectedNamespaceLister …
func (p *protectedNamespaceLister) List(selector labels.Selector) (ret []runtime.Object, err error) { … }
func (p *protectedNamespaceLister) Get(name string) (runtime.Object, error) { … }
func ListResourceUsingListerFunc(l quota.ListerForResourceFunc, resource schema.GroupVersionResource) ListFuncByNamespace { … }
func ObjectCountQuotaResourceNameFor(groupResource schema.GroupResource) corev1.ResourceName { … }
type ListFuncByNamespace …
type MatchesScopeFunc …
type UsageFunc …
type MatchingResourceNamesFunc …
func MatchesNoScopeFunc(scope corev1.ScopedResourceSelectorRequirement, object runtime.Object) (bool, error) { … }
func Matches(
resourceQuota *corev1.ResourceQuota, item runtime.Object,
matchFunc MatchingResourceNamesFunc, scopeFunc MatchesScopeFunc) (bool, error) { … }
func getScopeSelectorsFromQuota(quota *corev1.ResourceQuota) []corev1.ScopedResourceSelectorRequirement { … }
func CalculateUsageStats(options quota.UsageStatsOptions,
listFunc ListFuncByNamespace,
scopeFunc MatchesScopeFunc,
usageFunc UsageFunc) (quota.UsageStats, error) { … }
type objectCountEvaluator …
func (o *objectCountEvaluator) Constraints(required []corev1.ResourceName, item runtime.Object) error { … }
func (o *objectCountEvaluator) Handles(a admission.Attributes) bool { … }
func (o *objectCountEvaluator) Matches(resourceQuota *corev1.ResourceQuota, item runtime.Object) (bool, error) { … }
func (o *objectCountEvaluator) MatchingResources(input []corev1.ResourceName) []corev1.ResourceName { … }
func (o *objectCountEvaluator) MatchingScopes(item runtime.Object, scopes []corev1.ScopedResourceSelectorRequirement) ([]corev1.ScopedResourceSelectorRequirement, error) { … }
func (o *objectCountEvaluator) UncoveredQuotaScopes(limitedScopes []corev1.ScopedResourceSelectorRequirement, matchedQuotaScopes []corev1.ScopedResourceSelectorRequirement) ([]corev1.ScopedResourceSelectorRequirement, error) { … }
func (o *objectCountEvaluator) Usage(object runtime.Object) (corev1.ResourceList, error) { … }
func (o *objectCountEvaluator) GroupResource() schema.GroupResource { … }
func (o *objectCountEvaluator) UsageStats(options quota.UsageStatsOptions) (quota.UsageStats, error) { … }
var _ …
func NewObjectCountEvaluator(
groupResource schema.GroupResource, listFuncByNamespace ListFuncByNamespace,
alias corev1.ResourceName) quota.Evaluator { … }