engine

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 added in v0.11.0

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

func (*Engine) LookupVarFunc

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

func (*Engine) RunJob

func (e *Engine) RunJob(job string)

type ExecutorConstructor

type ExecutorConstructor func(*Engine) Shell

type JobOutputUnifier

type JobOutputUnifier struct {
	Job        *model.Job
	ScriptLine *string
	Writer     io.Writer
}

func (*JobOutputUnifier) Write

func (s *JobOutputUnifier) Write(p []byte) (n int, err error)

type Shell

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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