Documentation
¶
Index ¶
- Constants
- func VertexClasses(vtx *progrock.Vertex) string
- func WalkSteps(steps []*Step, f func(*TraceRow))
- func Zoomed(setup progrock.TermSetupFunc) progrock.VertexOpt
- type DB
- type Frontend
- func (fe *Frontend) Close() error
- func (fe *Frontend) ConnectedToCloud(cloudURL string)
- func (fe *Frontend) ConnectedToEngine(name string)
- func (fe *Frontend) DumpID(out *termenv.Output, id *call.ID) error
- func (fe *Frontend) Init() tea.Cmd
- func (fe *Frontend) Render(out *termenv.Output) error
- func (fe *Frontend) Run(ctx context.Context, run func(context.Context) error) error
- func (fe *Frontend) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (fe *Frontend) View() string
- func (fe *Frontend) WriteStatus(update *progrock.StatusUpdate) error
- type LogsView
- type Pipeline
- type Span
- type Step
- func (step *Step) Base() (*Step, bool)
- func (step *Step) Children() []*Step
- func (step *Step) Duration() time.Duration
- func (step *Step) EndTime() time.Time
- func (step *Step) Err() error
- func (step *Step) FirstCompleted() *time.Time
- func (step *Step) HasStarted() bool
- func (step *Step) ID() *call.ID
- func (step *Step) Inputs() []string
- func (step *Step) IsBefore(other *Step) bool
- func (step *Step) IsInternal() bool
- func (step *Step) IsRunning() bool
- func (step *Step) MostInterestingVertex() *progrock.Vertex
- func (step *Step) Name() string
- func (step *Step) Spans() (spans []Span)
- func (step *Step) StartTime() time.Time
- type TraceRow
- type Vterm
- func (term *Vterm) Init() tea.Cmd
- func (term *Vterm) LastLine() string
- func (term *Vterm) Print(w io.Writer) error
- func (term *Vterm) Render(w io.Writer, offset, height int)
- func (term *Vterm) ScrollPercent() float64
- func (term *Vterm) SetHeight(height int)
- func (term *Vterm) SetPrefix(prefix string)
- func (term *Vterm) SetWidth(width int)
- func (term *Vterm) Term() *midterm.Terminal
- func (term *Vterm) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (term *Vterm) UsedHeight() int
- func (term *Vterm) View() string
- func (term *Vterm) Write(p []byte) (int, error)
Constants ¶
const ( InitVertex = "init" PrimaryVertex = "primary" )
const ( TooFastThreshold = 100 * time.Millisecond GCThreshold = 1 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func VertexClasses ¶ added in v0.9.9
Types ¶
type DB ¶ added in v0.9.9
type DB struct {
Epoch, End time.Time
IDs map[string]*call.ID
Vertices map[string]*progrock.Vertex
Tasks map[string][]*progrock.VertexTask
Outputs map[string]map[string]struct{}
OutputOf map[string]map[string]struct{}
Children map[string]map[string]struct{}
Intervals map[string]map[time.Time]*progrock.Vertex
}
func (*DB) MostInterestingVertex ¶ added in v0.9.11
func (*DB) Step ¶ added in v0.9.9
Step returns a Step for the given digest if and only if the step should be displayed.
Currently this means:
- We don't show `id` selections, since that would be way too much noise. - We don't show internal non-ID vertices, since they're not interesting. - We DO show internal ID vertices, since they're currently marked internal just to hide them from the old TUI.
func (*DB) WriteStatus ¶ added in v0.9.9
func (db *DB) WriteStatus(status *progrock.StatusUpdate) error
type Frontend ¶
type Frontend struct {
// Debug tells the frontend to show everything and do one big final render.
Debug bool
// Plain tells the frontend to render plain console output instead of using a
// TUI. This will be automatically set to true if a TTY is not found.
Plain bool
// Silent tells the frontend to not display progress at all.
Silent bool
// contains filtered or unexported fields
}
func (*Frontend) ConnectedToCloud ¶ added in v0.9.9
ConnectedToCloud is called when the CLI has started emitting events to The Cloud.
func (*Frontend) ConnectedToEngine ¶ added in v0.9.9
ConnectedToEngine is called when the CLI connects to an engine.
func (*Frontend) Run ¶ added in v0.9.9
Run starts the TUI, calls the run function, stops the TUI, and finally prints the primary output to the appropriate stdout/stderr streams.
func (*Frontend) WriteStatus ¶
func (fe *Frontend) WriteStatus(update *progrock.StatusUpdate) error
type LogsView ¶ added in v0.10.0
func CollectLogsView ¶ added in v0.10.0
type Span ¶ added in v0.9.9
type Step ¶ added in v0.9.9
func CollectSteps ¶ added in v0.9.9
func (*Step) FirstCompleted ¶ added in v0.9.9
func (*Step) HasStarted ¶ added in v0.9.9
func (*Step) IsInternal ¶ added in v0.9.9
func (*Step) MostInterestingVertex ¶ added in v0.10.0
type TraceRow ¶ added in v0.9.9
type TraceRow struct {
Step *Step
Parent *TraceRow
IsRunning bool
Chained bool
Children []*TraceRow
Collapsed bool
}
func CollectRows ¶ added in v0.9.9
func (*TraceRow) IsInteresting ¶ added in v0.9.9
type Vterm ¶ added in v0.9.9
type Vterm struct {
Offset int
Height int
Width int
Prefix string
// contains filtered or unexported fields
}
func (*Vterm) LastLine ¶ added in v0.9.9
LastLine returns the last line of visible text, with ANSI formatting, but without any trailing whitespace.
func (*Vterm) Render ¶ added in v0.9.9
Bytes returns the output for the given region of the terminal, with ANSI formatting.