buildkit/client/graph.go

50 lines
778 B
Go
Raw Normal View History

package client
import (
"time"
digest "github.com/opencontainers/go-digest"
)
type Vertex struct {
ID digest.Digest
Inputs []digest.Digest
Name string
Started *time.Time
Completed *time.Time
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
// }