forked from pachyderm/pachyderm
/
pps.pb.go
372 lines (322 loc) · 13.7 KB
/
pps.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
// Code generated by protoc-gen-gogo.
// source: server/pps/pps.proto
// DO NOT EDIT!
/*
Package pps is a generated protocol buffer package.
It is generated from these files:
server/pps/pps.proto
It has these top-level messages:
StartPodRequest
StartPodResponse
FinishPodRequest
FinishPodResponse
ContinuePodRequest
ContinuePodResponse
*/
package pps
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/gogo/protobuf/gogoproto"
import fuse "github.com/pachyderm/pachyderm/src/server/pfs/fuse"
import pps1 "github.com/pachyderm/pachyderm/src/client/pps"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
type StartPodRequest struct {
Job *pps1.Job `protobuf:"bytes,1,opt,name=job" json:"job,omitempty"`
PodName string `protobuf:"bytes,2,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
}
func (m *StartPodRequest) Reset() { *m = StartPodRequest{} }
func (m *StartPodRequest) String() string { return proto.CompactTextString(m) }
func (*StartPodRequest) ProtoMessage() {}
func (*StartPodRequest) Descriptor() ([]byte, []int) { return fileDescriptorPps, []int{0} }
func (m *StartPodRequest) GetJob() *pps1.Job {
if m != nil {
return m.Job
}
return nil
}
func (m *StartPodRequest) GetPodName() string {
if m != nil {
return m.PodName
}
return ""
}
type StartPodResponse struct {
ChunkID string `protobuf:"bytes,1,opt,name=chunk_id,json=chunkId,proto3" json:"chunk_id,omitempty"`
Transform *pps1.Transform `protobuf:"bytes,2,opt,name=transform" json:"transform,omitempty"`
CommitMounts []*fuse.CommitMount `protobuf:"bytes,3,rep,name=commit_mounts,json=commitMounts" json:"commit_mounts,omitempty"`
}
func (m *StartPodResponse) Reset() { *m = StartPodResponse{} }
func (m *StartPodResponse) String() string { return proto.CompactTextString(m) }
func (*StartPodResponse) ProtoMessage() {}
func (*StartPodResponse) Descriptor() ([]byte, []int) { return fileDescriptorPps, []int{1} }
func (m *StartPodResponse) GetChunkID() string {
if m != nil {
return m.ChunkID
}
return ""
}
func (m *StartPodResponse) GetTransform() *pps1.Transform {
if m != nil {
return m.Transform
}
return nil
}
func (m *StartPodResponse) GetCommitMounts() []*fuse.CommitMount {
if m != nil {
return m.CommitMounts
}
return nil
}
type FinishPodRequest struct {
ChunkID string `protobuf:"bytes,1,opt,name=chunk_id,json=chunkId,proto3" json:"chunk_id,omitempty"`
PodName string `protobuf:"bytes,2,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
Success bool `protobuf:"varint,3,opt,name=success,proto3" json:"success,omitempty"`
}
func (m *FinishPodRequest) Reset() { *m = FinishPodRequest{} }
func (m *FinishPodRequest) String() string { return proto.CompactTextString(m) }
func (*FinishPodRequest) ProtoMessage() {}
func (*FinishPodRequest) Descriptor() ([]byte, []int) { return fileDescriptorPps, []int{2} }
func (m *FinishPodRequest) GetChunkID() string {
if m != nil {
return m.ChunkID
}
return ""
}
func (m *FinishPodRequest) GetPodName() string {
if m != nil {
return m.PodName
}
return ""
}
func (m *FinishPodRequest) GetSuccess() bool {
if m != nil {
return m.Success
}
return false
}
type FinishPodResponse struct {
// If restart is true, the pod is expected to exit with a non-zero code
// so that k8s knows to reschedule the pod.
Restart bool `protobuf:"varint,1,opt,name=restart,proto3" json:"restart,omitempty"`
}
func (m *FinishPodResponse) Reset() { *m = FinishPodResponse{} }
func (m *FinishPodResponse) String() string { return proto.CompactTextString(m) }
func (*FinishPodResponse) ProtoMessage() {}
func (*FinishPodResponse) Descriptor() ([]byte, []int) { return fileDescriptorPps, []int{3} }
func (m *FinishPodResponse) GetRestart() bool {
if m != nil {
return m.Restart
}
return false
}
type ContinuePodRequest struct {
ChunkID string `protobuf:"bytes,1,opt,name=chunk_id,json=chunkId,proto3" json:"chunk_id,omitempty"`
PodName string `protobuf:"bytes,2,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
}
func (m *ContinuePodRequest) Reset() { *m = ContinuePodRequest{} }
func (m *ContinuePodRequest) String() string { return proto.CompactTextString(m) }
func (*ContinuePodRequest) ProtoMessage() {}
func (*ContinuePodRequest) Descriptor() ([]byte, []int) { return fileDescriptorPps, []int{4} }
func (m *ContinuePodRequest) GetChunkID() string {
if m != nil {
return m.ChunkID
}
return ""
}
func (m *ContinuePodRequest) GetPodName() string {
if m != nil {
return m.PodName
}
return ""
}
type ContinuePodResponse struct {
// If restart is true, the pod is expected to abandon its work and exit
// with a non-zero code, so k8s knows to reschedule the pod.
// This happens if the chunk that the pod is working on has been assigned
// to another pod, or if the lease on this chunk has expired.
Restart bool `protobuf:"varint,1,opt,name=restart,proto3" json:"restart,omitempty"`
}
func (m *ContinuePodResponse) Reset() { *m = ContinuePodResponse{} }
func (m *ContinuePodResponse) String() string { return proto.CompactTextString(m) }
func (*ContinuePodResponse) ProtoMessage() {}
func (*ContinuePodResponse) Descriptor() ([]byte, []int) { return fileDescriptorPps, []int{5} }
func (m *ContinuePodResponse) GetRestart() bool {
if m != nil {
return m.Restart
}
return false
}
func init() {
proto.RegisterType((*StartPodRequest)(nil), "pps.StartPodRequest")
proto.RegisterType((*StartPodResponse)(nil), "pps.StartPodResponse")
proto.RegisterType((*FinishPodRequest)(nil), "pps.FinishPodRequest")
proto.RegisterType((*FinishPodResponse)(nil), "pps.FinishPodResponse")
proto.RegisterType((*ContinuePodRequest)(nil), "pps.ContinuePodRequest")
proto.RegisterType((*ContinuePodResponse)(nil), "pps.ContinuePodResponse")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for InternalPodAPI service
type InternalPodAPIClient interface {
StartPod(ctx context.Context, in *StartPodRequest, opts ...grpc.CallOption) (*StartPodResponse, error)
ContinuePod(ctx context.Context, in *ContinuePodRequest, opts ...grpc.CallOption) (*ContinuePodResponse, error)
FinishPod(ctx context.Context, in *FinishPodRequest, opts ...grpc.CallOption) (*FinishPodResponse, error)
}
type internalPodAPIClient struct {
cc *grpc.ClientConn
}
func NewInternalPodAPIClient(cc *grpc.ClientConn) InternalPodAPIClient {
return &internalPodAPIClient{cc}
}
func (c *internalPodAPIClient) StartPod(ctx context.Context, in *StartPodRequest, opts ...grpc.CallOption) (*StartPodResponse, error) {
out := new(StartPodResponse)
err := grpc.Invoke(ctx, "/pps.InternalPodAPI/StartPod", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *internalPodAPIClient) ContinuePod(ctx context.Context, in *ContinuePodRequest, opts ...grpc.CallOption) (*ContinuePodResponse, error) {
out := new(ContinuePodResponse)
err := grpc.Invoke(ctx, "/pps.InternalPodAPI/ContinuePod", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *internalPodAPIClient) FinishPod(ctx context.Context, in *FinishPodRequest, opts ...grpc.CallOption) (*FinishPodResponse, error) {
out := new(FinishPodResponse)
err := grpc.Invoke(ctx, "/pps.InternalPodAPI/FinishPod", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for InternalPodAPI service
type InternalPodAPIServer interface {
StartPod(context.Context, *StartPodRequest) (*StartPodResponse, error)
ContinuePod(context.Context, *ContinuePodRequest) (*ContinuePodResponse, error)
FinishPod(context.Context, *FinishPodRequest) (*FinishPodResponse, error)
}
func RegisterInternalPodAPIServer(s *grpc.Server, srv InternalPodAPIServer) {
s.RegisterService(&_InternalPodAPI_serviceDesc, srv)
}
func _InternalPodAPI_StartPod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(StartPodRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InternalPodAPIServer).StartPod(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pps.InternalPodAPI/StartPod",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InternalPodAPIServer).StartPod(ctx, req.(*StartPodRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InternalPodAPI_ContinuePod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ContinuePodRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InternalPodAPIServer).ContinuePod(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pps.InternalPodAPI/ContinuePod",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InternalPodAPIServer).ContinuePod(ctx, req.(*ContinuePodRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InternalPodAPI_FinishPod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FinishPodRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InternalPodAPIServer).FinishPod(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pps.InternalPodAPI/FinishPod",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InternalPodAPIServer).FinishPod(ctx, req.(*FinishPodRequest))
}
return interceptor(ctx, in, info, handler)
}
var _InternalPodAPI_serviceDesc = grpc.ServiceDesc{
ServiceName: "pps.InternalPodAPI",
HandlerType: (*InternalPodAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "StartPod",
Handler: _InternalPodAPI_StartPod_Handler,
},
{
MethodName: "ContinuePod",
Handler: _InternalPodAPI_ContinuePod_Handler,
},
{
MethodName: "FinishPod",
Handler: _InternalPodAPI_FinishPod_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "server/pps/pps.proto",
}
func init() { proto.RegisterFile("server/pps/pps.proto", fileDescriptorPps) }
var fileDescriptorPps = []byte{
// 419 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x53, 0xcd, 0xae, 0x93, 0x40,
0x14, 0x16, 0x89, 0x02, 0x07, 0xbd, 0xde, 0x3b, 0xa2, 0x22, 0x1b, 0x1b, 0x16, 0x86, 0x85, 0x96,
0x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