Documentation
¶
Index ¶
- func Add(log logr.Logger, mgr manager.Manager, recorder events.EventRecorder, ...) (err error)
- func CompileSelectorsWithFields(cache *cache.JSONPathCache, in []selectors.SelectorWithFields) ([]selectors.CompiledSelectorWithFields, error)
- func CompileTargets(jcache *cache.JSONPathCache, targets []capsulev1beta2.CustomQuotaStatusTarget) ([]cache.CompiledTarget, error)
- func MakeCustomQuotaCacheKey(namespace, name string) string
- func MakeGlobalCustomQuotaCacheKey(name string) string
- func MatchesCompiledSelectorsWithFields(u unstructured.Unstructured, selectors []selectors.CompiledSelectorWithFields) (bool, error)
- type CompiledTarget
- type GroupedTarget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add( log logr.Logger, mgr manager.Manager, recorder events.EventRecorder, cfg utils.ControllerOptions, quantityCache *cache.QuantityCache[string], jsonPathCache *cache.JSONPathCache, targetsCache *cache.CompiledTargetsCache[string], namespaceNotifier chan event.TypedGenericEvent[*capsulev1beta2.CustomQuota], globalNotifier chan event.TypedGenericEvent[*capsulev1beta2.GlobalCustomQuota], ) (err error)
func CompileSelectorsWithFields ¶
func CompileSelectorsWithFields( cache *cache.JSONPathCache, in []selectors.SelectorWithFields, ) ([]selectors.CompiledSelectorWithFields, error)
func CompileTargets ¶
func CompileTargets( jcache *cache.JSONPathCache, targets []capsulev1beta2.CustomQuotaStatusTarget, ) ([]cache.CompiledTarget, error)
func MakeCustomQuotaCacheKey ¶
func MatchesCompiledSelectorsWithFields ¶
func MatchesCompiledSelectorsWithFields( u unstructured.Unstructured, selectors []selectors.CompiledSelectorWithFields, ) (bool, error)
Types ¶
type CompiledTarget ¶
type CompiledTarget struct {
capsulev1beta2.CustomQuotaStatusTarget
CompiledPath *jsonpath.CompiledJSONPath
CompiledSelectors []selectors.CompiledSelectorWithFields
}
type GroupedTarget ¶
type GroupedTarget struct {
GVK schema.GroupVersionKind
Targets []capsulev1beta2.CustomQuotaStatusTarget
}
Click to show internal directories.
Click to hide internal directories.