Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProgressStatusPending = "pending" ProgressStatusRunning = "running" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
Progress ProgressState
Execution apply.ExecutionResult
Err error
// contains filtered or unexported fields
}
type PipelineDoneMsg ¶
type PipelineDoneMsg struct {
Result apply.ExecutionResult
}
type ProgressItem ¶
type ProgressState ¶
type ProgressState struct {
Items []ProgressItem
Current int
Logs []string
}
func NewProgressState ¶
func NewProgressState(labels []string) ProgressState
func ProgressFromExecution ¶
func ProgressFromExecution(result apply.ExecutionResult) ProgressState
func (*ProgressState) AppendLog ¶
func (p *ProgressState) AppendLog(format string, args ...any)
func (*ProgressState) Mark ¶
func (p *ProgressState) Mark(index int, status string)
func (ProgressState) Render ¶
func (p ProgressState) Render() string
func (*ProgressState) Start ¶
func (p *ProgressState) Start(index int)
type StepProgressMsg ¶
type StepProgressMsg struct {
StepID string
Status apply.StepStatus
Err error
}
Click to show internal directories.
Click to hide internal directories.