expression

package
v0.0.0-...-13f83cf Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expr

type Expr struct {
	// contains filtered or unexported fields
}

func New

func New() (*Expr, error)

func (*Expr) Condition

func (e *Expr) Condition(input *pipelinespec.ExecutorInput, condition string) (bool, error)

Condition evaluates condition expression against executor input, it returns whether the task should run. Fields of ExecutorInput can be directly referred in condition. When this returns: * true -> run the task * false -> skip the task

func (*Expr) Select

func (e *Expr) Select(v *structpb.Value, expr string) (*structpb.Value, error)

Select from a protobuf.Value using a CEL expression. Fields of protobuf.Value can be directly referenced in the select expression.

Jump to

Keyboard shortcuts

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