2017-06-13 21:42:51 +00:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
2021-12-01 01:20:47 +00:00
|
|
|
"github.com/moby/buildkit/solver/pb"
|
2017-06-13 21:42:51 +00:00
|
|
|
digest "github.com/opencontainers/go-digest"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Vertex struct {
|
2022-02-03 18:54:42 +00:00
|
|
|
Digest digest.Digest
|
|
|
|
Inputs []digest.Digest
|
|
|
|
Name string
|
|
|
|
Started *time.Time
|
|
|
|
Completed *time.Time
|
|
|
|
Cached bool
|
|
|
|
Error string
|
|
|
|
ProgressGroup *pb.ProgressGroup
|
2017-06-13 21:42:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type VertexStatus struct {
|
2017-06-14 00:40:15 +00:00
|
|
|
ID string
|
2017-06-13 21:42:51 +00:00
|
|
|
Vertex digest.Digest
|
|
|
|
Name string
|
2017-06-15 23:08:20 +00:00
|
|
|
Total int64
|
|
|
|
Current int64
|
2017-06-13 21:42:51 +00:00
|
|
|
Timestamp time.Time
|
2017-06-15 23:34:42 +00:00
|
|
|
Started *time.Time
|
|
|
|
Completed *time.Time
|
2017-06-13 21:42:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type VertexLog struct {
|
|
|
|
Vertex digest.Digest
|
|
|
|
Stream int
|
|
|
|
Data []byte
|
|
|
|
Timestamp time.Time
|
|
|
|
}
|
|
|
|
|
2021-11-24 07:56:04 +00:00
|
|
|
type VertexWarning struct {
|
2021-12-01 01:20:47 +00:00
|
|
|
Vertex digest.Digest
|
|
|
|
Level int
|
2021-12-01 05:57:43 +00:00
|
|
|
Short []byte
|
2021-12-14 05:24:24 +00:00
|
|
|
Detail [][]byte
|
|
|
|
URL string
|
2021-12-01 01:20:47 +00:00
|
|
|
SourceInfo *pb.SourceInfo
|
|
|
|
Range []*pb.Range
|
2021-11-24 07:56:04 +00:00
|
|
|
}
|
|
|
|
|
2017-06-13 21:42:51 +00:00
|
|
|
type SolveStatus struct {
|
|
|
|
Vertexes []*Vertex
|
|
|
|
Statuses []*VertexStatus
|
|
|
|
Logs []*VertexLog
|
2021-11-24 07:56:04 +00:00
|
|
|
Warnings []*VertexWarning
|
2017-06-13 21:42:51 +00:00
|
|
|
}
|
2018-05-03 00:35:07 +00:00
|
|
|
|
|
|
|
type SolveResponse struct {
|
2018-09-11 08:02:46 +00:00
|
|
|
// ExporterResponse is also used for CacheExporter
|
2018-05-03 00:35:07 +00:00
|
|
|
ExporterResponse map[string]string
|
|
|
|
}
|