execution

package
v0.0.0-...-03bec22 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionContext

type ExecutionContext struct {
	JobID    string
	Pipeline *pipeline.Pipeline
	Tracker  tracking.JobTracker
	// contains filtered or unexported fields
}

ExecutionContext - context for a execution

func NewExecutionContext

func NewExecutionContext(jobID string, pipeline *pipeline.Pipeline, tracker tracking.JobTracker) *ExecutionContext

func (*ExecutionContext) Run

func (e *ExecutionContext) Run() error

Run - runs the execution

func (*ExecutionContext) TaskHandler

func (e *ExecutionContext) TaskHandler(handler func(*pipeline.Task, map[string]string) (*ExecutionResult, error)) *ExecutionContext

Handler - Sets the handler for this worker

func (*ExecutionContext) Variables

func (e *ExecutionContext) Variables(variables map[string]interface{}) *ExecutionContext

type ExecutionResult

type ExecutionResult struct {
	Success bool                   `json:"success" bson:"success"`
	Error   *string                `json:"error" bson:"error"`
	Output  map[string]interface{} `json:"output" bson:"output"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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