celutil

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvaluateCriteriaExpression

func EvaluateCriteriaExpression(clusterLabels map[string]string, expression string) (bool, error)

EvaluateCriteriaExpression builds a CEL environment from the provided cluster labels (keys & values lowercased) and evaluates the given expression. It returns (true, nil) if the expression evaluates to the boolean true. If the expression evaluates to boolean false it returns (false, nil). Any error in environment construction, parsing, type checking, program build, evaluation, or non-boolean result returns a wrapped error with a generic message suitable for higher-level contextual wrapping by callers.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL