2017-06-13 21:42:51 +00:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
digest "github.com/opencontainers/go-digest"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Vertex struct {
|
2017-06-14 00:40:15 +00:00
|
|
|
Digest digest.Digest
|
2017-06-13 21:42:51 +00:00
|
|
|
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 {
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
type SolveStatus struct {
|
|
|
|
Vertexes []*Vertex
|
|
|
|
Statuses []*VertexStatus
|
|
|
|
Logs []*VertexLog
|
|
|
|
}
|