-
Notifications
You must be signed in to change notification settings - Fork 346
/
cni.pb.go
519 lines (462 loc) · 19.4 KB
/
cni.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
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: pkg/apis/cni/v1beta1/cni.proto
package v1beta1
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
any "github.com/golang/protobuf/ptypes/any"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
type ErrorCode int32
const (
ErrorCode_UNKNOWN ErrorCode = 0
ErrorCode_INCOMPATIBLE_CNI_VERSION ErrorCode = 1
ErrorCode_UNSUPPORTED_FIELD ErrorCode = 2
ErrorCode_UNKNOWN_CONTAINER ErrorCode = 3
ErrorCode_INVALID_ENVIRONMENT_VARIABLES ErrorCode = 4
ErrorCode_IO_FAILURE ErrorCode = 5
ErrorCode_DECODING_FAILURE ErrorCode = 6
ErrorCode_INVALID_NETWORK_CONFIG ErrorCode = 7
ErrorCode_TRY_AGAIN_LATER ErrorCode = 11
ErrorCode_IPAM_FAILURE ErrorCode = 101
ErrorCode_CONFIG_INTERFACE_FAILURE ErrorCode = 102
ErrorCode_CHECK_INTERFACE_FAILURE ErrorCode = 103
// these errors are not used by the servers, but we declare them here to
// make sure they are reserved.
ErrorCode_UNKNOWN_RPC_ERROR ErrorCode = 201
ErrorCode_INCOMPATIBLE_API_VERSION ErrorCode = 202
)
var ErrorCode_name = map[int32]string{
0: "UNKNOWN",
1: "INCOMPATIBLE_CNI_VERSION",
2: "UNSUPPORTED_FIELD",
3: "UNKNOWN_CONTAINER",
4: "INVALID_ENVIRONMENT_VARIABLES",
5: "IO_FAILURE",
6: "DECODING_FAILURE",
7: "INVALID_NETWORK_CONFIG",
11: "TRY_AGAIN_LATER",
101: "IPAM_FAILURE",
102: "CONFIG_INTERFACE_FAILURE",
103: "CHECK_INTERFACE_FAILURE",
201: "UNKNOWN_RPC_ERROR",
202: "INCOMPATIBLE_API_VERSION",
}
var ErrorCode_value = map[string]int32{
"UNKNOWN": 0,
"INCOMPATIBLE_CNI_VERSION": 1,
"UNSUPPORTED_FIELD": 2,
"UNKNOWN_CONTAINER": 3,
"INVALID_ENVIRONMENT_VARIABLES": 4,
"IO_FAILURE": 5,
"DECODING_FAILURE": 6,
"INVALID_NETWORK_CONFIG": 7,
"TRY_AGAIN_LATER": 11,
"IPAM_FAILURE": 101,
"CONFIG_INTERFACE_FAILURE": 102,
"CHECK_INTERFACE_FAILURE": 103,
"UNKNOWN_RPC_ERROR": 201,
"INCOMPATIBLE_API_VERSION": 202,
}
func (x ErrorCode) String() string {
return proto.EnumName(ErrorCode_name, int32(x))
}
func (ErrorCode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_b2a032bc733ddeeb, []int{0}
}
type CniCmdArgs struct {
ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
Netns string `protobuf:"bytes,2,opt,name=netns,proto3" json:"netns,omitempty"`
Ifname string `protobuf:"bytes,3,opt,name=ifname,proto3" json:"ifname,omitempty"`
Args string `protobuf:"bytes,4,opt,name=args,proto3" json:"args,omitempty"`
Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
NetworkConfiguration []byte `protobuf:"bytes,6,opt,name=network_configuration,json=networkConfiguration,proto3" json:"network_configuration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CniCmdArgs) Reset() { *m = CniCmdArgs{} }
func (m *CniCmdArgs) String() string { return proto.CompactTextString(m) }
func (*CniCmdArgs) ProtoMessage() {}
func (*CniCmdArgs) Descriptor() ([]byte, []int) {
return fileDescriptor_b2a032bc733ddeeb, []int{0}
}
func (m *CniCmdArgs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CniCmdArgs.Unmarshal(m, b)
}
func (m *CniCmdArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CniCmdArgs.Marshal(b, m, deterministic)
}
func (m *CniCmdArgs) XXX_Merge(src proto.Message) {
xxx_messageInfo_CniCmdArgs.Merge(m, src)
}
func (m *CniCmdArgs) XXX_Size() int {
return xxx_messageInfo_CniCmdArgs.Size(m)
}
func (m *CniCmdArgs) XXX_DiscardUnknown() {
xxx_messageInfo_CniCmdArgs.DiscardUnknown(m)
}
var xxx_messageInfo_CniCmdArgs proto.InternalMessageInfo
func (m *CniCmdArgs) GetContainerId() string {
if m != nil {
return m.ContainerId
}
return ""
}
func (m *CniCmdArgs) GetNetns() string {
if m != nil {
return m.Netns
}
return ""
}
func (m *CniCmdArgs) GetIfname() string {
if m != nil {
return m.Ifname
}
return ""
}
func (m *CniCmdArgs) GetArgs() string {
if m != nil {
return m.Args
}
return ""
}
func (m *CniCmdArgs) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
func (m *CniCmdArgs) GetNetworkConfiguration() []byte {
if m != nil {
return m.NetworkConfiguration
}
return nil
}
type CniCmdRequest struct {
CniArgs *CniCmdArgs `protobuf:"bytes,1,opt,name=cni_args,json=cniArgs,proto3" json:"cni_args,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CniCmdRequest) Reset() { *m = CniCmdRequest{} }
func (m *CniCmdRequest) String() string { return proto.CompactTextString(m) }
func (*CniCmdRequest) ProtoMessage() {}
func (*CniCmdRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_b2a032bc733ddeeb, []int{1}
}
func (m *CniCmdRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CniCmdRequest.Unmarshal(m, b)
}
func (m *CniCmdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CniCmdRequest.Marshal(b, m, deterministic)
}
func (m *CniCmdRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CniCmdRequest.Merge(m, src)
}
func (m *CniCmdRequest) XXX_Size() int {
return xxx_messageInfo_CniCmdRequest.Size(m)
}
func (m *CniCmdRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CniCmdRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CniCmdRequest proto.InternalMessageInfo
func (m *CniCmdRequest) GetCniArgs() *CniCmdArgs {
if m != nil {
return m.CniArgs
}
return nil
}
type Error struct {
Code ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=github.com.vmware_tanzu.antrea.pkg.apis.cni.v1beta1.ErrorCode" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Details []*any.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Error) Reset() { *m = Error{} }
func (m *Error) String() string { return proto.CompactTextString(m) }
func (*Error) ProtoMessage() {}
func (*Error) Descriptor() ([]byte, []int) {
return fileDescriptor_b2a032bc733ddeeb, []int{2}
}
func (m *Error) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Error.Unmarshal(m, b)
}
func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Error.Marshal(b, m, deterministic)
}
func (m *Error) XXX_Merge(src proto.Message) {
xxx_messageInfo_Error.Merge(m, src)
}
func (m *Error) XXX_Size() int {
return xxx_messageInfo_Error.Size(m)
}
func (m *Error) XXX_DiscardUnknown() {
xxx_messageInfo_Error.DiscardUnknown(m)
}
var xxx_messageInfo_Error proto.InternalMessageInfo
func (m *Error) GetCode() ErrorCode {
if m != nil {
return m.Code
}
return ErrorCode_UNKNOWN
}
func (m *Error) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
func (m *Error) GetDetails() []*any.Any {
if m != nil {
return m.Details
}
return nil
}
type CniCmdResponse struct {
CniResult []byte `protobuf:"bytes,1,opt,name=cni_result,json=cniResult,proto3" json:"cni_result,omitempty"`
Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CniCmdResponse) Reset() { *m = CniCmdResponse{} }
func (m *CniCmdResponse) String() string { return proto.CompactTextString(m) }
func (*CniCmdResponse) ProtoMessage() {}
func (*CniCmdResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_b2a032bc733ddeeb, []int{3}
}
func (m *CniCmdResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CniCmdResponse.Unmarshal(m, b)
}
func (m *CniCmdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CniCmdResponse.Marshal(b, m, deterministic)
}
func (m *CniCmdResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CniCmdResponse.Merge(m, src)
}
func (m *CniCmdResponse) XXX_Size() int {
return xxx_messageInfo_CniCmdResponse.Size(m)
}
func (m *CniCmdResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CniCmdResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CniCmdResponse proto.InternalMessageInfo
func (m *CniCmdResponse) GetCniResult() []byte {
if m != nil {
return m.CniResult
}
return nil
}
func (m *CniCmdResponse) GetError() *Error {
if m != nil {
return m.Error
}
return nil
}
func init() {
proto.RegisterEnum("github.com.vmware_tanzu.antrea.pkg.apis.cni.v1beta1.ErrorCode", ErrorCode_name, ErrorCode_value)
proto.RegisterType((*CniCmdArgs)(nil), "github.com.vmware_tanzu.antrea.pkg.apis.cni.v1beta1.CniCmdArgs")
proto.RegisterType((*CniCmdRequest)(nil), "github.com.vmware_tanzu.antrea.pkg.apis.cni.v1beta1.CniCmdRequest")
proto.RegisterType((*Error)(nil), "github.com.vmware_tanzu.antrea.pkg.apis.cni.v1beta1.Error")
proto.RegisterType((*CniCmdResponse)(nil), "github.com.vmware_tanzu.antrea.pkg.apis.cni.v1beta1.CniCmdResponse")
}
func init() { proto.RegisterFile("pkg/apis/cni/v1beta1/cni.proto", fileDescriptor_b2a032bc733ddeeb) }
var fileDescriptor_b2a032bc733ddeeb = []byte{
// 698 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x53, 0x4d, 0x52, 0xe3, 0x46,
0x14, 0x46, 0xf8, 0x0f, 0x3f, 0x3b, 0x44, 0xe9, 0x18, 0xa2, 0x90, 0x90, 0x02, 0xaf, 0xa8, 0x2c,
0xe4, 0xc2, 0xec, 0xb2, 0x48, 0x4a, 0x6e, 0xb7, 0x49, 0x17, 0xa6, 0xe5, 0x6a, 0x64, 0x53, 0x61,
0xa3, 0x92, 0xa5, 0xb6, 0x50, 0xd9, 0x6e, 0x39, 0x92, 0x0c, 0xc5, 0xec, 0xe6, 0x0c, 0x53, 0x73,
0x84, 0xb9, 0xc4, 0xdc, 0x80, 0x39, 0xc6, 0x9c, 0x64, 0x4a, 0x92, 0x6d, 0xa6, 0xa6, 0x66, 0x05,
0x1b, 0x76, 0xaf, 0xbf, 0x4f, 0xef, 0x7b, 0xdf, 0xfb, 0xd4, 0x0d, 0x7f, 0x2c, 0xa6, 0x7e, 0xcb,
0x59, 0x04, 0x71, 0xcb, 0x95, 0x41, 0xeb, 0xee, 0x74, 0x2c, 0x12, 0xe7, 0x34, 0xad, 0xf5, 0x45,
0x14, 0x26, 0x21, 0x3a, 0xf3, 0x83, 0xe4, 0x76, 0x39, 0xd6, 0xdd, 0x70, 0xae, 0xdf, 0xcd, 0xef,
0x9d, 0x48, 0xd8,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0xbe, 0x04, 0x00, 0x00,
0xff, 0xff, 0x54, 0x43, 0xba, 0x85, 0x0a, 0x06, 0x00, 0x00,
}
// 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
// CniClient is the client API for Cni service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CniClient interface {
CmdAdd(ctx context.Context, in *CniCmdRequest, opts ...grpc.CallOption) (*CniCmdResponse, error)
CmdCheck(ctx context.Context, in *CniCmdRequest, opts ...grpc.CallOption) (*CniCmdResponse, error)
CmdDel(ctx context.Context, in *CniCmdRequest, opts ...grpc.CallOption) (*CniCmdResponse, error)
}
type cniClient struct {
cc *grpc.ClientConn
}
func NewCniClient(cc *grpc.ClientConn) CniClient {
return &cniClient{cc}
}
func (c *cniClient) CmdAdd(ctx context.Context, in *CniCmdRequest, opts ...grpc.CallOption) (*CniCmdResponse, error) {
out := new(CniCmdResponse)
err := c.cc.Invoke(ctx, "/github.com.vmware_tanzu.antrea.pkg.apis.cni.v1beta1.Cni/CmdAdd", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *cniClient) CmdCheck(ctx context.Context, in *CniCmdRequest, opts ...grpc.CallOption) (*CniCmdResponse, error) {
out := new(CniCmdResponse)
err := c.cc.Invoke(ctx, "/github.com.vmware_tanzu.antrea.pkg.apis.cni.v1beta1.Cni/CmdCheck", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *cniClient) CmdDel(ctx context.Context, in *CniCmdRequest, opts ...grpc.CallOption) (*CniCmdResponse, error) {
out := new(CniCmdResponse)
err := c.cc.Invoke(ctx, "/github.com.vmware_tanzu.antrea.pkg.apis.cni.v1beta1.Cni/CmdDel", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CniServer is the server API for Cni service.
type CniServer interface {
CmdAdd(context.Context, *CniCmdRequest) (*CniCmdResponse, error)
CmdCheck(context.Context, *CniCmdRequest) (*CniCmdResponse, error)
CmdDel(context.Context, *CniCmdRequest) (*CniCmdResponse, error)
}
// UnimplementedCniServer can be embedded to have forward compatible implementations.
type UnimplementedCniServer struct {
}
func (*UnimplementedCniServer) CmdAdd(ctx context.Context, req *CniCmdRequest) (*CniCmdResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CmdAdd not implemented")
}
func (*UnimplementedCniServer) CmdCheck(ctx context.Context, req *CniCmdRequest) (*CniCmdResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CmdCheck not implemented")
}
func (*UnimplementedCniServer) CmdDel(ctx context.Context, req *CniCmdRequest) (*CniCmdResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CmdDel not implemented")
}
func RegisterCniServer(s *grpc.Server, srv CniServer) {
s.RegisterService(&_Cni_serviceDesc, srv)
}
func _Cni_CmdAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CniCmdRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CniServer).CmdAdd(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/github.com.vmware_tanzu.antrea.pkg.apis.cni.v1beta1.Cni/CmdAdd",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CniServer).CmdAdd(ctx, req.(*CniCmdRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Cni_CmdCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CniCmdRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CniServer).CmdCheck(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/github.com.vmware_tanzu.antrea.pkg.apis.cni.v1beta1.Cni/CmdCheck",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CniServer).CmdCheck(ctx, req.(*CniCmdRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Cni_CmdDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CniCmdRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CniServer).CmdDel(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/github.com.vmware_tanzu.antrea.pkg.apis.cni.v1beta1.Cni/CmdDel",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CniServer).CmdDel(ctx, req.(*CniCmdRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Cni_serviceDesc = grpc.ServiceDesc{
ServiceName: "github.com.vmware_tanzu.antrea.pkg.apis.cni.v1beta1.Cni",
HandlerType: (*CniServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CmdAdd",
Handler: _Cni_CmdAdd_Handler,
},
{
MethodName: "CmdCheck",
Handler: _Cni_CmdCheck_Handler,
},
{
MethodName: "CmdDel",
Handler: _Cni_CmdDel_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "pkg/apis/cni/v1beta1/cni.proto",
}