executor

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	Cmd        *exec.Cmd
	OutputFile string
	// contains filtered or unexported fields
}

func (*Cmd) Start

func (c *Cmd) Start() error

func (*Cmd) Wait

func (c *Cmd) Wait() error

type Executor

type Executor struct {
	Matcher

	StateManager *state.StateManager

	// ShellRCFile is an optional path to a shell rc file to source before executing any step scripts.
	ShellRCFile string
	// contains filtered or unexported fields
}

func (*Executor) CurrentStep

func (e *Executor) CurrentStep() (i int, matchedStep Step, err error)

func (*Executor) CurrentStepCmd

func (e *Executor) CurrentStepCmd(ctx context.Context) (*Cmd, error)

func (*Executor) NextStep

func (e *Executor) NextStep() (i int, matchedStep Step, err error)

func (*Executor) Prepare

func (e *Executor) Prepare() error

type Matcher

type Matcher struct {
	Workflow workflow.Workflow
	Steps    []steps.Step
	// contains filtered or unexported fields
}

func (*Matcher) Prepare

func (m *Matcher) Prepare() error

func (*Matcher) PreparedSteps

func (m *Matcher) PreparedSteps() ([]Step, error)

PreparedSteps returns the list of steps matched to the workflow in order. Returns an error if the matcher has not been prepared.

type Step

type Step struct {
	Match        string
	MatchedStep  steps.Step
	NamedMatches map[string]string
}

Jump to

Keyboard shortcuts

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