executor

package
v0.0.0-...-3db0b21 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Autopilot

type Autopilot struct {
	Exec
	// contains filtered or unexported fields
}

func NewAutopilot

func NewAutopilot(strict bool, rootWorkDir string, timeout time.Duration, logger *logger.Autopilot) *Autopilot

func (*Autopilot) Execute

func (a *Autopilot) Execute(config *configuration.Item, env, vars, secrets map[string]string) (*Output, error)

type Exec

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

type Executor

type Executor interface {
	Execute(config *configuration.Item, env, vars, secrets map[string]string) (*Output, error)
}

type Finalizer

type Finalizer struct {
	Exec
	// contains filtered or unexported fields
}

func NewFinalizer

func NewFinalizer(rootWorkDir string, timeout time.Duration, logger *logger.Autopilot) *Finalizer

func (*Finalizer) Execute

func (f *Finalizer) Execute(config *configuration.Item, env, vars, secrets map[string]string) (*Output, error)

type Manual

type Manual struct {
	Exec
}

func NewManual

func NewManual(logger *logger.Autopilot) *Manual

func (*Manual) Execute

func (m *Manual) Execute(config *configuration.Item, env, vars, secrets map[string]string) (*Output, error)

type Output

type Output struct {
	ExitCode      int
	Logs          []string
	ErrLogs       []string
	EvidencePath  string
	ExecutionType string
	Status        string
	Reason        string
	Results       []Result
	Outputs       map[string]string
	Name          string
}

func (*Output) Log

func (o *Output) Log(l logger.Logger)

func (*Output) String

func (o *Output) String() string

type Outputter

type Outputter interface {
	Log(logger logger.Logger)
}

type Result

type Result struct {
	Criterion     string
	Fulfilled     bool
	Justification string
	Metadata      map[string]string
}

Jump to

Keyboard shortcuts

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