types

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package types contains shared types used by runner and debugger packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobContext

type JobContext struct {
	JobID        string
	Job          *workflow.Job
	ContainerID  string
	WorkspaceDir string
	StepResults  []*StepResult
	Env          map[string]string
	Secrets      map[string]string
	StepOutputs  map[string]map[string]string // stepID -> outputs
	Matrix       map[string]string            // matrix variable values for this run
	NeedsOutputs map[string]map[string]string // depJobID -> outputKey -> value
}

JobContext holds runtime state for a job execution.

type JobResult

type JobResult struct {
	JobID       string
	JobName     string
	Status      JobStatus
	StepResults []*StepResult
	Duration    time.Duration
	Outputs     map[string]string
}

JobResult captures the outcome of a job execution.

type JobStatus

type JobStatus int

JobStatus represents the outcome of a job.

const (
	JobStatusPending JobStatus = iota
	JobStatusRunning
	JobStatusPassed
	JobStatusFailed
	JobStatusSkipped
)

func (JobStatus) String

func (s JobStatus) String() string

type RunConfig

type RunConfig struct {
	WorkflowPath      string
	JobFilter         string
	EnvFile           string
	SecretFile        string
	PlatformOverrides map[string]string
	Verbose           bool
	WorkspaceDir      string

	// Debugger options
	StepMode     bool
	BreakBefore  []string
	BreakAfter   []string
	BreakOnError bool

	// Reporting
	EnvReport bool

	// Watch mode
	Watch bool
}

RunConfig holds options for a workflow run.

type RunResult

type RunResult struct {
	WorkflowName string
	JobResults   []*JobResult
	Duration     time.Duration
}

RunResult captures the outcome of a full workflow run.

type StepResult

type StepResult struct {
	Step     *workflow.Step
	Index    int
	Status   StepStatus
	ExitCode int
	Stdout   string
	Stderr   string
	Duration time.Duration
	Outputs  map[string]string
}

StepResult captures the outcome of a single step execution.

type StepStatus

type StepStatus int

StepStatus represents the outcome of a step.

const (
	StepStatusPending StepStatus = iota
	StepStatusRunning
	StepStatusPassed
	StepStatusFailed
	StepStatusSkipped
)

func (StepStatus) String

func (s StepStatus) String() string

Jump to

Keyboard shortcuts

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