progress

package
v0.0.0-...-e2bf415 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package progress is based on https://github.com/moby/buildkit/tree/master/util/progress/progressui, Licensed under Apache License Version 2.0, January 2004

Index

Constants

View Source
const (
	TermPad = 10
)

Variables

View Source
var TermHeight = termHeightMin

Functions

This section is empty.

Types

type DisplayInfo

type DisplayInfo struct {
	StartTime      time.Time
	Jobs           []*Job
	CountTotal     int
	CountCompleted int
}

type Interval

type Interval struct {
	// contains filtered or unexported fields
}

func (Interval) Duration

func (ival Interval) Duration() time.Duration

type Job

type Job struct {
	Intervals   []Interval
	IsCompleted bool
	Name        string
	Status      string
	HasError    bool
	IsCanceled  bool
	Vertex      *vertex
	ShowTerm    bool
}

func SetupTerminals

func SetupTerminals(jobs []*Job, height int, all bool) []*Job

type TextMux

type TextMux struct {
	// contains filtered or unexported fields
}

func NewTextMux

func NewTextMux(w io.Writer, desc string) *TextMux

func (*TextMux) Print

func (p *TextMux) Print(t *Trace)

type Trace

type Trace struct {
	// contains filtered or unexported fields
}

func NewTrace

func NewTrace(modeConsole bool) *Trace

func (*Trace) DisplayInfo

func (t *Trace) DisplayInfo() (d DisplayInfo)

func (*Trace) ErrorLogs

func (t *Trace) ErrorLogs() string

func (*Trace) Update

func (t *Trace) Update(s *client.SolveStatus, termWidth int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL