progressui

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

README

ProgressUI

This is a port of the UI from docker buildkit, adapted for working with this library and not requiring creating a dependency on all of the Docker / Build kit library just to lift it's progress reporting ability.

Please refer to the upstream lib for details about how this was originally implemented: https://github.com/moby/buildkit/blob/v0.7.1/util/progress/progressui/display.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplaySolveStatus

func DisplaySolveStatus(ctx context.Context, phase string, c console.Console, w io.Writer, ch chan *SolveStatus) error

Types

type SolveStatus

type SolveStatus struct {
	Vertexes []*Vertex
	Statuses []*VertexStatus
	Logs     []*VertexLog
}

type Vertex

type Vertex struct {
	Digest    digest.Digest
	Inputs    []digest.Digest
	Name      string
	Started   *time.Time
	Completed *time.Time
	Cached    bool
	Error     string
}

type VertexLog

type VertexLog struct {
	Vertex    digest.Digest
	Stream    int
	Data      []byte
	Timestamp time.Time
}

type VertexStatus

type VertexStatus struct {
	ID        string
	Vertex    digest.Digest
	Name      string
	Total     int64
	Current   int64
	Timestamp time.Time
	Started   *time.Time
	Completed *time.Time
}

Jump to

Keyboard shortcuts

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