Documentation
¶
Index ¶
- func Add(log logr.Logger, mgr manager.Manager, recorder events.EventRecorder, ...) (err error)
- func CompileSelectorsWithFields(jcache *cache.JSONPathCache, ccache *cache.CELCache, ...) ([]selectors.CompiledSelectorWithFields, error)
- func CompileTargets(jcache *cache.JSONPathCache, ccache *cache.CELCache, ...) ([]cache.CompiledTarget, error)
- func MakeCustomQuotaCacheKey(namespace, name string) string
- func MakeGlobalCustomQuotaCacheKey(name string) string
- func MatchesCompiledSelectorsWithFields(ctx context.Context, u unstructured.Unstructured, ...) (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, jsonPathCache *cache.JSONPathCache, celCache *cache.CELCache, targetsCache *cache.CompiledTargetsCache[string], ) (err error)
func CompileSelectorsWithFields ¶
func CompileSelectorsWithFields( jcache *cache.JSONPathCache, ccache *cache.CELCache, in []selectors.SelectorWithFields, ) ([]selectors.CompiledSelectorWithFields, error)
func CompileTargets ¶
func CompileTargets( jcache *cache.JSONPathCache, ccache *cache.CELCache, targets []capsulev1beta2.CustomQuotaStatusTarget, ) ([]cache.CompiledTarget, error)
func MakeCustomQuotaCacheKey ¶
func MatchesCompiledSelectorsWithFields ¶
func MatchesCompiledSelectorsWithFields( ctx context.Context, u unstructured.Unstructured, selectors []selectors.CompiledSelectorWithFields, ) (bool, error)
Types ¶
type CompiledTarget ¶
type CompiledTarget struct {
capsulev1beta2.CustomQuotaStatusTarget
CompiledPath *jsonpath.CompiledJSONPath
CompiledCEL *celruntime.CompiledExpression
CompiledSelectors []selectors.CompiledSelectorWithFields
}
type GroupedTarget ¶
type GroupedTarget struct {
GVK schema.GroupVersionKind
Targets []capsulev1beta2.CustomQuotaStatusTarget
}
Click to show internal directories.
Click to hide internal directories.