cel

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int added in v0.47.0

func Int(i int) string

func Str added in v0.47.0

func Str(s string) string

Types

type CELParser

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

func NewCELParser

func NewCELParser() *CELParser

func (*CELParser) CheckStepRunOutAgainstKnown added in v0.47.0

func (p *CELParser) CheckStepRunOutAgainstKnown(out *StepRunOut, knownType dbsqlc.StepExpressionKind) error

func (*CELParser) ParseAndEvalStepRun added in v0.47.0

func (p *CELParser) ParseAndEvalStepRun(stepRunExpr string, in Input) (*StepRunOut, error)

func (*CELParser) ParseAndEvalWorkflowString

func (p *CELParser) ParseAndEvalWorkflowString(workflowExp string, in Input) (string, error)

func (*CELParser) ParseStepRun added in v0.47.0

func (p *CELParser) ParseStepRun(stepRunExpr string) (cel.Program, error)

func (*CELParser) ParseWorkflowString

func (p *CELParser) ParseWorkflowString(workflowExp string) (cel.Program, error)

type Input added in v0.47.0

type Input map[string]interface{}

func NewInput added in v0.47.0

func NewInput(opts ...InputOpts) Input

type InputOpts added in v0.47.0

type InputOpts func(Input)

func WithAdditionalMetadata

func WithAdditionalMetadata(metadata map[string]interface{}) InputOpts

func WithInput

func WithInput(input map[string]interface{}) InputOpts

func WithParents added in v0.47.0

func WithParents(parents map[string]map[string]interface{}) InputOpts

func WithWorkflowRunID

func WithWorkflowRunID(workflowRunID string) InputOpts

type StepRunOut added in v0.47.0

type StepRunOut struct {
	String *string
	Int    *int
	Type   StepRunOutType
}

type StepRunOutType added in v0.47.0

type StepRunOutType string
const (
	StepRunOutTypeString StepRunOutType = "string"
	StepRunOutTypeInt    StepRunOutType = "int"
)

Jump to

Keyboard shortcuts

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