Documentation ¶
Index ¶
- Constants
- func DecideBranch(ctx context.Context, nl executors.NodeLookup, nodeID v1alpha1.NodeID, ...) (*v1alpha1.NodeID, error)
- func Evaluate(lValue *core.Primitive, rValue *core.Primitive, ...) (bool, error)
- func Evaluate1(lValue *core.Primitive, rValue *core.Literal, ...) (bool, error)
- func Evaluate2(lValue *core.Literal, rValue *core.Primitive, ...) (bool, error)
- func EvaluateBooleanExpression(expr *core.BooleanExpression, nodeInputs *core.LiteralMap) (bool, error)
- func EvaluateComparison(expr *core.ComparisonExpression, nodeInputs *core.LiteralMap) (bool, error)
- func EvaluateIfBlock(block v1alpha1.ExecutableIfBlock, nodeInputs *core.LiteralMap, ...) (*v1alpha1.NodeID, []*v1alpha1.NodeID, error)
- func EvaluateLiterals(lValue *core.Literal, rValue *core.Literal, ...) (bool, error)
- func New(executor executors.Node, scope promutils.Scope) handler.Node
Constants ¶
View Source
const ErrorCodeCompilerError = "CompilerError"
View Source
const ErrorCodeMalformedBranch = "MalformedBranchUserError"
View Source
const ErrorCodeUserProvidedError = "UserProvidedError"
Variables ¶
This section is empty.
Functions ¶
func DecideBranch ¶
func DecideBranch(ctx context.Context, nl executors.NodeLookup, nodeID v1alpha1.NodeID, node v1alpha1.ExecutableBranchNode, nodeInputs *core.LiteralMap) (*v1alpha1.NodeID, error)
Decides the branch to be taken, returns the nodeId of the selected node or an error The branchNode is marked as success. This is used by downstream node to determine if it can be executed All downstream nodes are marked as skipped
func EvaluateBooleanExpression ¶
func EvaluateBooleanExpression(expr *core.BooleanExpression, nodeInputs *core.LiteralMap) (bool, error)
func EvaluateComparison ¶
func EvaluateComparison(expr *core.ComparisonExpression, nodeInputs *core.LiteralMap) (bool, error)
func EvaluateIfBlock ¶
func EvaluateLiterals ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.