@@ -2,17 +2,14 @@ syntax = "proto3";
2
2
3
3
package moby.buildkit.v1 ;
4
4
5
+ option go_package = "github.com/moby/buildkit/api/services/control;moby_buildkit_v1" ;
6
+
5
7
// import "github.com/containerd/containerd/api/types/descriptor.proto";
6
- import "github.com/gogo/googleapis/google/rpc/status.proto" ;
7
- import "github.com/gogo/protobuf/gogoproto/gogo.proto" ;
8
8
import "github.com/moby/buildkit/api/types/worker.proto" ;
9
9
import "github.com/moby/buildkit/solver/pb/ops.proto" ;
10
10
import "github.com/moby/buildkit/sourcepolicy/pb/policy.proto" ;
11
11
import "google/protobuf/timestamp.proto" ;
12
-
13
- option (gogoproto.sizer_all ) = true ;
14
- option (gogoproto.marshaler_all ) = true ;
15
- option (gogoproto.unmarshaler_all ) = true ;
12
+ import "google/rpc/status.proto" ;
16
13
17
14
service Control {
18
15
rpc DiskUsage (DiskUsageRequest ) returns (DiskUsageResponse );
@@ -30,8 +27,8 @@ service Control {
30
27
message PruneRequest {
31
28
repeated string filter = 1 ;
32
29
bool all = 2 ;
33
- int64 keepDuration = 3 [ (gogoproto .nullable ) = true ] ;
34
- int64 keepBytes = 4 [ (gogoproto .nullable ) = true ] ;
30
+ int64 keepDuration = 3 ;
31
+ int64 keepBytes = 4 ;
35
32
}
36
33
37
34
message DiskUsageRequest {
@@ -48,8 +45,8 @@ message UsageRecord {
48
45
bool InUse = 3 ;
49
46
int64 Size = 4 ;
50
47
string Parent = 5 [deprecated =true ];
51
- google.protobuf.Timestamp CreatedAt = 6 [ (gogoproto .stdtime ) = true , (gogoproto .nullable ) = false ] ;
52
- google.protobuf.Timestamp LastUsedAt = 7 [ (gogoproto .stdtime ) = true ] ;
48
+ google.protobuf.Timestamp CreatedAt = 6 ;
49
+ google.protobuf.Timestamp LastUsedAt = 7 ;
53
50
int64 UsageCount = 8 ;
54
51
string Description = 9 ;
55
52
string RecordType = 10 ;
@@ -68,8 +65,8 @@ message SolveRequest {
68
65
string Session = 5 ;
69
66
string Frontend = 6 ;
70
67
map <string , string > FrontendAttrs = 7 ;
71
- CacheOptions Cache = 8 [ (gogoproto .nullable ) = false ] ;
72
- repeated string Entitlements = 9 [ (gogoproto .customtype ) = "github.com/moby/buildkit/util/entitlements.Entitlement" ] ;
68
+ CacheOptions Cache = 8 ;
69
+ repeated string Entitlements = 9 ;
73
70
map <string , pb.Definition > FrontendInputs = 10 ;
74
71
bool Internal = 11 ; // Internal builds are not recorded in build history
75
72
moby.buildkit.v1.sourcepolicy.Policy SourcePolicy = 12 ;
@@ -120,36 +117,36 @@ message StatusResponse {
120
117
}
121
118
122
119
message Vertex {
123
- string digest = 1 [ (gogoproto .customtype ) = "github.com/opencontainers/go-digest.Digest" , (gogoproto .nullable ) = false ] ;
124
- repeated string inputs = 2 [ (gogoproto .customtype ) = "github.com/opencontainers/go-digest.Digest" , (gogoproto .nullable ) = false ] ;
120
+ string digest = 1 ;
121
+ repeated string inputs = 2 ;
125
122
string name = 3 ;
126
123
bool cached = 4 ;
127
- google.protobuf.Timestamp started = 5 [ (gogoproto .stdtime ) = true ] ;
128
- google.protobuf.Timestamp completed = 6 [ (gogoproto .stdtime ) = true ] ;
124
+ google.protobuf.Timestamp started = 5 ;
125
+ google.protobuf.Timestamp completed = 6 ;
129
126
string error = 7 ; // typed errors?
130
127
pb.ProgressGroup progressGroup = 8 ;
131
128
}
132
129
133
130
message VertexStatus {
134
131
string ID = 1 ;
135
- string vertex = 2 [ (gogoproto .customtype ) = "github.com/opencontainers/go-digest.Digest" , (gogoproto .nullable ) = false ] ;
132
+ string vertex = 2 ;
136
133
string name = 3 ;
137
134
int64 current = 4 ;
138
135
int64 total = 5 ;
139
- google.protobuf.Timestamp timestamp = 6 [ (gogoproto .stdtime ) = true , (gogoproto .nullable ) = false ] ;
140
- google.protobuf.Timestamp started = 7 [ (gogoproto .stdtime ) = true ] ;
141
- google.protobuf.Timestamp completed = 8 [ (gogoproto .stdtime ) = true ] ;
136
+ google.protobuf.Timestamp timestamp = 6 ;
137
+ google.protobuf.Timestamp started = 7 ;
138
+ google.protobuf.Timestamp completed = 8 ;
142
139
}
143
140
144
141
message VertexLog {
145
- string vertex = 1 [ (gogoproto .customtype ) = "github.com/opencontainers/go-digest.Digest" , (gogoproto .nullable ) = false ] ;
146
- google.protobuf.Timestamp timestamp = 2 [ (gogoproto .stdtime ) = true , (gogoproto .nullable ) = false ] ;
142
+ string vertex = 1 ;
143
+ google.protobuf.Timestamp timestamp = 2 ;
147
144
int64 stream = 3 ;
148
145
bytes msg = 4 ;
149
146
}
150
147
151
148
message VertexWarning {
152
- string vertex = 1 [ (gogoproto .customtype ) = "github.com/opencontainers/go-digest.Digest" , (gogoproto .nullable ) = false ] ;
149
+ string vertex = 1 ;
153
150
int64 level = 2 ;
154
151
bytes short = 3 ;
155
152
repeated bytes detail = 4 ;
@@ -199,8 +196,8 @@ message BuildHistoryRecord {
199
196
map <string , string > FrontendAttrs = 3 ;
200
197
repeated Exporter Exporters = 4 ;
201
198
google.rpc.Status error = 5 ;
202
- google.protobuf.Timestamp CreatedAt = 6 [ (gogoproto .stdtime ) = true ] ;
203
- google.protobuf.Timestamp CompletedAt = 7 [ (gogoproto .stdtime ) = true ] ;
199
+ google.protobuf.Timestamp CreatedAt = 6 ;
200
+ google.protobuf.Timestamp CompletedAt = 7 ;
204
201
Descriptor logs = 8 ;
205
202
map <string , string > ExporterResponse = 9 ;
206
203
BuildResultInfo Result = 10 ;
@@ -228,7 +225,7 @@ message UpdateBuildHistoryResponse {}
228
225
229
226
message Descriptor {
230
227
string media_type = 1 ;
231
- string digest = 2 [ (gogoproto .customtype ) = "github.com/opencontainers/go-digest.Digest" , (gogoproto .nullable ) = false ] ;
228
+ string digest = 2 ;
232
229
int64 size = 3 ;
233
230
map <string , string > annotations = 5 ;
234
231
}
0 commit comments