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 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 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
Click to show internal directories.
Click to hide internal directories.