exprparser

package
v0.0.0-...-49ad519 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Run        *model.Run
	WorkingDir string
	Context    string
}

type EvaluationEnvironment

type EvaluationEnvironment struct {
	Github      *model.GithubContext
	Env         map[string]string
	Job         *model.JobContext
	Steps       map[string]*model.StepResult
	Runner      map[string]interface{}
	Secrets     map[string]string
	Strategy    map[string]interface{}
	Matrix      map[string]interface{}
	Needs       map[string]map[string]map[string]string
	Inputs      map[string]interface{}
	ContextData map[string]interface{}
}

type Interpreter

type Interpreter interface {
	Evaluate(input string, isIfExpression bool) (interface{}, error)
}

func NewInterpeter

func NewInterpeter(env *EvaluationEnvironment, config Config) Interpreter

Jump to

Keyboard shortcuts

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