Documentation
¶
Overview ¶
Package debug provides an interactive TUI for debugging Cromwell workflow metadata.
Index ¶
- Constants
- func ExpandIcon(expanded bool, hasChildren bool) string
- func NodeTypeIcon(t NodeType) string
- func StatusIcon(status string) string
- func StatusStyle(status string) lipgloss.Style
- func TreePrefix(depth int, isLast bool, parentExpanded bool) string
- type CallDetails
- type ExecutionEvent
- type Failure
- type KeyMap
- type MetadataFetcher
- type Model
- type NodeType
- type NodeViewState
- type PanelFocus
- type PreemptionStats
- type ProblematicTask
- type TreeNode
- type ViewMode
- type WorkflowMetadata
- type WorkflowPreemptionSummary
Constants ¶
const ( NodeTypeWorkflow = debuginfo.NodeTypeWorkflow NodeTypeCall = debuginfo.NodeTypeCall NodeTypeSubWorkflow = debuginfo.NodeTypeSubWorkflow NodeTypeShard = debuginfo.NodeTypeShard )
NodeType constants
Variables ¶
This section is empty.
Functions ¶
func ExpandIcon ¶
ExpandIcon returns the expand/collapse icon.
func NodeTypeIcon ¶
NodeTypeIcon returns an icon for the node type.
func StatusStyle ¶
StatusStyle returns the appropriate style for a status.
Types ¶
type CallDetails ¶
type CallDetails = debuginfo.CallDetails
Type aliases from debuginfo package for backward compatibility
type ExecutionEvent ¶
type ExecutionEvent = debuginfo.ExecutionEvent
Type aliases from debuginfo package for backward compatibility
type KeyMap ¶
type KeyMap struct {
Up key.Binding
Down key.Binding
Left key.Binding
Right key.Binding
Enter key.Binding
Space key.Binding
Tab key.Binding
Quit key.Binding
Help key.Binding
Escape key.Binding
Details key.Binding
ExpandAll key.Binding
CollapseAll key.Binding
Home key.Binding
End key.Binding
PageUp key.Binding
PageDown key.Binding
Copy key.Binding
}
KeyMap defines all key bindings for the TUI.
type MetadataFetcher ¶
type MetadataFetcher interface {
GetRawMetadataWithOptions(ctx context.Context, workflowID string, expandSubWorkflows bool) ([]byte, error)
GetWorkflowCost(ctx context.Context, workflowID string) (float64, string, error)
}
MetadataFetcher is an interface for fetching workflow metadata.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the main model for the debug TUI.
func NewModelWithDebugInfoAndMonitoring ¶ added in v1.0.2
func NewModelWithDebugInfoAndMonitoring(di *debuginfo.DebugInfo, fetcher MetadataFetcher, muc monitoringuc.Usecase, fp monitoring.FileProvider) Model
NewModelWithDebugInfoAndMonitoring creates a model with all dependencies.
type NodeViewState ¶ added in v1.0.2
type NodeViewState struct {
ViewMode ViewMode
LogCursor int
PanelFocus PanelFocus
}
NodeViewState persists the view state for a specific node.
type PanelFocus ¶
type PanelFocus int
PanelFocus represents which panel has focus.
const ( FocusTree PanelFocus = iota FocusDetails )
type PreemptionStats ¶
type PreemptionStats = debuginfo.PreemptionStats
Type aliases from debuginfo package for backward compatibility
type ProblematicTask ¶
type ProblematicTask = debuginfo.ProblematicTask
Type aliases from debuginfo package for backward compatibility
type WorkflowMetadata ¶
type WorkflowMetadata = debuginfo.WorkflowMetadata
Type aliases from debuginfo package for backward compatibility
type WorkflowPreemptionSummary ¶
type WorkflowPreemptionSummary = debuginfo.WorkflowPreemptionSummary
Type aliases from debuginfo package for backward compatibility