2017-06-13 21:42:51 +00:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
digest "github.com/opencontainers/go-digest"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Vertex struct {
|
|
|
|
ID digest.Digest
|
|
|
|
Inputs []digest.Digest
|
|
|
|
Name string
|
2017-06-14 00:15:55 +00:00
|
|
|
Started *time.Time
|
|
|
|
Completed *time.Time
|
2017-06-13 21:42:51 +00:00
|
|
|
Cached bool
|
|
|
|
Error string
|
|
|
|
}
|
|
|
|
|
|
|
|
type VertexStatus struct {
|
|
|
|
ID digest.Digest
|
|
|
|
Vertex digest.Digest
|
|
|
|
Name string
|
|
|
|
Total int
|
|
|
|
Current int
|
|
|
|
Timestamp 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 VertexEvent struct {
|
|
|
|
// ID digest.Digest
|
|
|
|
// Vertex digest.Digest
|
|
|
|
// Name string
|
|
|
|
// Total int
|
|
|
|
// Current int
|
|
|
|
// Timestamp int64
|
|
|
|
// }
|