60 lines
1.1 KiB
Go
60 lines
1.1 KiB
Go
package client
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/moby/buildkit/solver/pb"
|
|
digest "github.com/opencontainers/go-digest"
|
|
)
|
|
|
|
type Vertex struct {
|
|
Digest digest.Digest
|
|
Inputs []digest.Digest
|
|
Name string
|
|
Started *time.Time
|
|
Completed *time.Time
|
|
Cached bool
|
|
Error string
|
|
ProgressGroup *pb.ProgressGroup
|
|
}
|
|
|
|
type VertexStatus struct {
|
|
ID string
|
|
Vertex digest.Digest
|
|
Name string
|
|
Total int64
|
|
Current int64
|
|
Timestamp time.Time
|
|
Started *time.Time
|
|
Completed *time.Time
|
|
}
|
|
|
|
type VertexLog struct {
|
|
Vertex digest.Digest
|
|
Stream int
|
|
Data []byte
|
|
Timestamp time.Time
|
|
}
|
|
|
|
type VertexWarning struct {
|
|
Vertex digest.Digest
|
|
Level int
|
|
Short []byte
|
|
Detail [][]byte
|
|
URL string
|
|
SourceInfo *pb.SourceInfo
|
|
Range []*pb.Range
|
|
}
|
|
|
|
type SolveStatus struct {
|
|
Vertexes []*Vertex
|
|
Statuses []*VertexStatus
|
|
Logs []*VertexLog
|
|
Warnings []*VertexWarning
|
|
}
|
|
|
|
type SolveResponse struct {
|
|
// ExporterResponse is also used for CacheExporter
|
|
ExporterResponse map[string]string
|
|
}
|