Documentation ¶
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)
- func WriteBuildRef(w Writer, target string, ref string)
- type Logger
- type Printer
- func (p *Printer) BuildRefs() map[string]string
- func (p *Printer) ClearLogSource(v interface{})
- func (p *Printer) Pause() error
- func (p *Printer) Unpause()
- func (p *Printer) ValidateLogSource(dgst digest.Digest, v interface{}) 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
- type SubLogger
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChannel ¶ added in v0.5.0
func NewChannel(w Writer) (chan *client.SolveStatus, chan struct{})
func WriteBuildRef ¶ added in v0.11.0
Types ¶
type Logger ¶
type Logger func(*client.SolveStatus)
type Printer ¶ added in v0.5.0
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) ClearLogSource ¶ added in v0.8.0
func (p *Printer) ClearLogSource(v interface{})
func (*Printer) ValidateLogSource ¶ added in v0.8.0
func (*Printer) Warnings ¶ added in v0.8.0
func (p *Printer) Warnings() []client.VertexWarning
func (*Printer) Write ¶ added in v0.5.0
func (p *Printer) Write(s *client.SolveStatus)
func (*Printer) WriteBuildRef ¶ added in v0.11.0
type PrinterOpt ¶ added in v0.11.0
type PrinterOpt func(b *printerOpts)
func WithDesc ¶ added in v0.11.0
func WithDesc(text string, console string) PrinterOpt
func WithOnClose ¶ added in v0.11.0
func WithOnClose(onclose func()) PrinterOpt
func WithPhase ¶ added in v0.11.0
func WithPhase(phase string) PrinterOpt
Click to show internal directories.
Click to hide internal directories.