Documentation
¶
Index ¶
- type BreakpointConfig
- type DebugAction
- type Debugger
- func (d *Debugger) HandleBreakpointAfter(step *workflow.Step, result *types.StepResult) (DebugAction, error)
- func (d *Debugger) HandleBreakpointBefore(step *workflow.Step, index int, jobCtx interface{}) (DebugAction, error)
- func (d *Debugger) InspectStep(step *workflow.Step, index int)
- func (d *Debugger) IsEnabled() bool
- func (d *Debugger) OpenShell(openFn func(containerID, workDir string) error) error
- func (d *Debugger) SetContainer(id, workDir string)
- func (d *Debugger) ShouldBreakAfter(step *workflow.Step, result *types.StepResult) bool
- func (d *Debugger) ShouldBreakBefore(step *workflow.Step, index int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BreakpointConfig ¶
type BreakpointConfig struct {
BreakBefore []string // step names/IDs to break before
BreakAfter []string // step names/IDs to break after
BreakOnError bool // break on any step failure
StepMode bool // break before every step
}
BreakpointConfig defines where execution should pause.
type DebugAction ¶
type DebugAction int
DebugAction is the user's response at a breakpoint.
const ( ActionContinue DebugAction = iota // run this step and continue ActionSkip // skip this step ActionRetry // re-run previous step ActionShell // open interactive shell ActionInspect // show step details ActionQuit // abort the run )
type Debugger ¶
type Debugger struct {
// contains filtered or unexported fields
}
Debugger manages breakpoints and step-by-step execution.
func (*Debugger) HandleBreakpointAfter ¶
func (d *Debugger) HandleBreakpointAfter(step *workflow.Step, result *types.StepResult) (DebugAction, error)
HandleBreakpointAfter handles a post-step breakpoint. Returns the action to take.
func (*Debugger) HandleBreakpointBefore ¶
func (d *Debugger) HandleBreakpointBefore(step *workflow.Step, index int, jobCtx interface{}) (DebugAction, error)
HandleBreakpointBefore handles a pre-step breakpoint. Returns the action to take.
func (*Debugger) InspectStep ¶
InspectStep prints detailed information about a step.
func (*Debugger) OpenShell ¶
OpenShell drops into an interactive shell in the container. This requires the docker client to be passed in.
func (*Debugger) SetContainer ¶
SetContainer sets the container ID for shell access.
func (*Debugger) ShouldBreakAfter ¶
ShouldBreakAfter returns true if execution should pause after this step.
Click to show internal directories.
Click to hide internal directories.