Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SolverMonitor ¶
type SolverMonitor struct {
// contains filtered or unexported fields
}
SolverMonitor is an object that monitors for status updates from a buildkit solve and prints them to the console.
func NewSolverMonitor ¶
func NewSolverMonitor(console conslogging.ConsoleLogger, verbose bool, disableNoOutputUpdates bool) *SolverMonitor
NewSolverMonitor retuns a new solver monitor.
func (*SolverMonitor) MonitorProgress ¶
func (sm *SolverMonitor) MonitorProgress(ctx context.Context, ch chan *client.SolveStatus, phaseText string, sideRun bool, bkClient *client.Client) (string, error)
MonitorProgress consumes progress messages from a solve statue channel and prints them to the console.
func (*SolverMonitor) PrintTiming ¶
func (sm *SolverMonitor) PrintTiming()
PrintTiming prints the accumulated timing information.
type VertexMeta ¶
type VertexMeta struct { SourceLocation *spec.SourceLocation `json:"sl,omitempty"` TargetID string `json:"tid,omitempty"` TargetName string `json:"tnm,omitempty"` Platform string `json:"plt,omitempty"` NonDefaultPlatform bool `json:"defplt,omitempty"` Local bool `json:"lcl,omitempty"` Interactive bool `json:"itrctv,omitempty"` OverridingArgs map[string]string `json:"args,omitempty"` Internal bool `json:"itrnl,omitempty"` }
VertexMeta is metadata associated with the vertex. This is passed from the converter to the solver monitor via BuildKit.
func ParseFromVertexPrefix ¶
func ParseFromVertexPrefix(in string) (*VertexMeta, string)
ParseFromVertexPrefix parses the vertex prefix from the given string.
func (*VertexMeta) OverridingArgsString ¶
func (vm *VertexMeta) OverridingArgsString() string
OverridingArgsString returns the string representation of the overriding arguments.
func (*VertexMeta) Salt ¶
func (vm *VertexMeta) Salt() string
Salt returns a string identifying the target as uniquely as possible.
func (*VertexMeta) ToVertexPrefix ¶
func (vm *VertexMeta) ToVertexPrefix() string
ToVertexPrefix returns the vertex prefix for the given VertexMeta.