package progress
import "github.com/docker/buildx/util/progress"
Index ¶
- func NewChannel(w Writer) (chan *client.SolveStatus, chan struct{})
- func Wrap(name string, l Logger, fn func(SubLogger) error) (err error)
- func Write(w Writer, name string, f func() error) error
- func WriteBuildRef(w Writer, target string, ref string)
- type Logger
- type Printer
- func NewPrinter(ctx context.Context, out console.File, mode progressui.DisplayMode, opts ...PrinterOpt) (*Printer, error)
- func (p *Printer) BuildRefs() map[string]string
- func (p *Printer) ClearLogSource(v any)
- func (p *Printer) IsDone() bool
- func (p *Printer) Pause() error
- func (p *Printer) Unpause()
- func (p *Printer) ValidateLogSource(dgst digest.Digest, v any) bool
- func (p *Printer) Wait() error
- func (p *Printer) Warnings() []client.VertexWarning
- func (p *Printer) Write(s *client.SolveStatus)
- func (p *Printer) WriteBuildRef(target string, ref string)
- type PrinterOpt
- func WithDesc(text string, console string) PrinterOpt
- func WithMetrics(mp metric.MeterProvider, attrs attribute.Set) PrinterOpt
- func WithOnClose(onclose func()) PrinterOpt
- func WithPhase(phase string) PrinterOpt
- type SubLogger
- type Writer
Functions ¶
func NewChannel ¶
func NewChannel(w Writer) (chan *client.SolveStatus, chan struct{})
func Wrap ¶
func Write ¶
func WriteBuildRef ¶
Types ¶
type Logger ¶
type Logger func(*client.SolveStatus)
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
func NewPrinter ¶
func NewPrinter(ctx context.Context, out console.File, mode progressui.DisplayMode, opts ...PrinterOpt) (*Printer, error)
func (*Printer) BuildRefs ¶
func (*Printer) ClearLogSource ¶
func (*Printer) IsDone ¶
func (*Printer) Pause ¶
func (*Printer) Unpause ¶
func (p *Printer) Unpause()
func (*Printer) ValidateLogSource ¶
func (*Printer) Wait ¶
func (*Printer) Warnings ¶
func (p *Printer) Warnings() []client.VertexWarning
func (*Printer) Write ¶
func (p *Printer) Write(s *client.SolveStatus)
func (*Printer) WriteBuildRef ¶
type PrinterOpt ¶
type PrinterOpt func(b *printerOpts)
func WithDesc ¶
func WithDesc(text string, console string) PrinterOpt
func WithMetrics ¶
func WithMetrics(mp metric.MeterProvider, attrs attribute.Set) PrinterOpt
func WithOnClose ¶
func WithOnClose(onclose func()) PrinterOpt
func WithPhase ¶
func WithPhase(phase string) PrinterOpt
type SubLogger ¶
type SubLogger interface { Wrap(name string, fn func() error) error Log(stream int, dt []byte) SetStatus(*client.VertexStatus) }
type Writer ¶
type Writer interface { Write(*client.SolveStatus) WriteBuildRef(string, string) ValidateLogSource(digest.Digest, any) bool ClearLogSource(any) }
func ResetTime ¶
func Tee ¶
func Tee(w Writer, ch chan *client.SolveStatus) Writer
func WithPrefix ¶
Source Files ¶
metricwriter.go multiwriter.go printer.go progress.go reset.go writer.go
- Version
- v0.22.0 (latest)
- Published
- Mar 17, 2025
- Platform
- js/wasm
- Imports
- 20 packages
- Last checked
- 3 weeks ago –
Tools for package owners.