2018-04-19 13:07:27 -04:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
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 SolveStatus struct {
|
|
|
|
Vertexes []*Vertex
|
|
|
|
Statuses []*VertexStatus
|
|
|
|
Logs []*VertexLog
|
|
|
|
}
|
|
|
|
|
|
|
|
type SolveResponse struct {
|
2019-04-03 02:23:23 -04:00
|
|
|
// ExporterResponse is also used for CacheExporter
|
2018-04-19 13:07:27 -04:00
|
|
|
ExporterResponse map[string]string
|
|
|
|
}
|