expr

package
v0.0.0-...-40cb442 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvalBooleanExpression

func EvalBooleanExpression(expression string, context map[string]interface{}) (bool, error)

EvalBooleanExpression evaluates a boolean expression using CEL (e.g. "1 == 1") and returns the result

func EvaluateRule

func EvaluateRule(rule string, evalContext map[string]interface{}) (bool, error)

EvaluateRule will evaluate a WorkflowRule and return the result

func EvaluateRules

func EvaluateRules(rules []string, evalContext map[string]interface{}) (int, error)

EvaluateRules will check all rules and returns the count of matching rules

Types

This section is empty.

Jump to

Keyboard shortcuts

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