engine

package
v0.18.10 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCmdOutputTarget

func GetCmdOutputTarget(j *model.Job) (out, err io.Writer)

func RegisterExecutor

func RegisterExecutor(name string, constructor ExecutorConstructor)

Types

type Engine

type Engine struct {
	Variables model.VariableMap
	// contains filtered or unexported fields
}

func New

func New(jobList map[string]*model.Job, additionalEnvVars model.VariableMap) *Engine

func (*Engine) CollectArgs

func (e *Engine) CollectArgs(job string)

Collects all arguments for a job recursively

func (*Engine) ExpandVarsWithTemplateEngine

func (e *Engine) ExpandVarsWithTemplateEngine(script string, j *model.Job) string

func (*Engine) GetJob

func (e *Engine) GetJob(name string) (j *model.Job, ok bool)

func (*Engine) LookupVarFunc

func (e *Engine) LookupVarFunc(j *model.Job) func(string) string

func (*Engine) RunJob

func (e *Engine) RunJob(job string)

type Executor

type Executor interface {
	Execute(j *model.Job, script string) error
}

type ExecutorConstructor

type ExecutorConstructor func(*Engine) Executor

Jump to

Keyboard shortcuts

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