forked from kubernetes-csi/csi-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.pb.go
735 lines (658 loc) · 27.7 KB
/
api.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
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api.proto
package v1alpha1
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
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
// Context of the paths used for path prefix validation
type PathContext int32
const (
// Indicates the kubelet-csi-plugins-path parameter of csi-proxy be used as
// the path context. This may be used while handling NodeStageVolume where
// a volume may need to be mounted at a plugin-specific path like:
// kubelet\plugins\kubernetes.io\csi\pv\<pv-name>\globalmount
PathContext_PLUGIN PathContext = 0
// Indicates the kubelet-pod-path parameter of csi-proxy be used as the path
// context. This may be used while handling NodePublishVolume where a staged
// volume may be need to be symlinked to a pod-specific path like:
// kubelet\pods\<pod-uuid>\volumes\kubernetes.io~csi\<pvc-name>\mount
PathContext_POD PathContext = 1
)
var PathContext_name = map[int32]string{
0: "PLUGIN",
1: "POD",
}
var PathContext_value = map[string]int32{
"PLUGIN": 0,
"POD": 1,
}
func (x PathContext) String() string {
return proto.EnumName(PathContext_name, int32(x))
}
func (PathContext) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_00212fb1f9d3bf1c, []int{0}
}
type PathExistsRequest struct {
// The path whose existence we want to check in the host's filesystem
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// Context of the path parameter.
// This is used to validate prefix for absolute paths passed
Context PathContext `protobuf:"varint,2,opt,name=context,proto3,enum=v1alpha1.PathContext" json:"context,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PathExistsRequest) Reset() { *m = PathExistsRequest{} }
func (m *PathExistsRequest) String() string { return proto.CompactTextString(m) }
func (*PathExistsRequest) ProtoMessage() {}
func (*PathExistsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_00212fb1f9d3bf1c, []int{0}
}
func (m *PathExistsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PathExistsRequest.Unmarshal(m, b)
}
func (m *PathExistsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PathExistsRequest.Marshal(b, m, deterministic)
}
func (m *PathExistsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PathExistsRequest.Merge(m, src)
}
func (m *PathExistsRequest) XXX_Size() int {
return xxx_messageInfo_PathExistsRequest.Size(m)
}
func (m *PathExistsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PathExistsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PathExistsRequest proto.InternalMessageInfo
func (m *PathExistsRequest) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
func (m *PathExistsRequest) GetContext() PathContext {
if m != nil {
return m.Context
}
return PathContext_PLUGIN
}
type PathExistsResponse struct {
// Error message if any. Empty string indicates success
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
// Indicates whether the path in PathExistsRequest exists in the host's filesystem
Exists bool `protobuf:"varint,2,opt,name=exists,proto3" json:"exists,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PathExistsResponse) Reset() { *m = PathExistsResponse{} }
func (m *PathExistsResponse) String() string { return proto.CompactTextString(m) }
func (*PathExistsResponse) ProtoMessage() {}
func (*PathExistsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_00212fb1f9d3bf1c, []int{1}
}
func (m *PathExistsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PathExistsResponse.Unmarshal(m, b)
}
func (m *PathExistsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PathExistsResponse.Marshal(b, m, deterministic)
}
func (m *PathExistsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PathExistsResponse.Merge(m, src)
}
func (m *PathExistsResponse) XXX_Size() int {
return xxx_messageInfo_PathExistsResponse.Size(m)
}
func (m *PathExistsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PathExistsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PathExistsResponse proto.InternalMessageInfo
func (m *PathExistsResponse) GetError() string {
if m != nil {
return m.Error
}
return ""
}
func (m *PathExistsResponse) GetExists() bool {
if m != nil {
return m.Exists
}
return false
}
type MkdirRequest struct {
// The path to create in the host's filesystem.
// All special characters allowed by Windows in path names will be allowed
// except for restrictions noted below. For details, please check:
// https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
// Non-existent parent directories in the path will be automatically created.
// Directories will be created with Read and Write privileges of the Windows
// User account under which csi-proxy is started (typically LocalSystem).
//
// Restrictions:
// Only absolute path (indicated by a drive letter prefix: e.g. "C:\") is accepted.
// Depending on the context parameter of this function, the path prefix needs
// to match the paths specified either as kubelet-csi-plugins-path
// or as kubelet-pod-path parameters of csi-proxy.
// The path parameter cannot already exist in the host's filesystem.
// UNC paths of the form "\\server\share\path\file" are not allowed.
// All directory separators need to be backslash character: "\".
// Characters: .. / : | ? * in the path are not allowed.
// Maximum path length will be capped to 260 characters.
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// Context of the path parameter.
// This is used to validate prefix for absolute paths passed
Context PathContext `protobuf:"varint,2,opt,name=context,proto3,enum=v1alpha1.PathContext" json:"context,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MkdirRequest) Reset() { *m = MkdirRequest{} }
func (m *MkdirRequest) String() string { return proto.CompactTextString(m) }
func (*MkdirRequest) ProtoMessage() {}
func (*MkdirRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_00212fb1f9d3bf1c, []int{2}
}
func (m *MkdirRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MkdirRequest.Unmarshal(m, b)
}
func (m *MkdirRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MkdirRequest.Marshal(b, m, deterministic)
}
func (m *MkdirRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_MkdirRequest.Merge(m, src)
}
func (m *MkdirRequest) XXX_Size() int {
return xxx_messageInfo_MkdirRequest.Size(m)
}
func (m *MkdirRequest) XXX_DiscardUnknown() {
xxx_messageInfo_MkdirRequest.DiscardUnknown(m)
}
var xxx_messageInfo_MkdirRequest proto.InternalMessageInfo
func (m *MkdirRequest) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
func (m *MkdirRequest) GetContext() PathContext {
if m != nil {
return m.Context
}
return PathContext_PLUGIN
}
type MkdirResponse struct {
// Error message if any. Empty string indicates success
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MkdirResponse) Reset() { *m = MkdirResponse{} }
func (m *MkdirResponse) String() string { return proto.CompactTextString(m) }
func (*MkdirResponse) ProtoMessage() {}
func (*MkdirResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_00212fb1f9d3bf1c, []int{3}
}
func (m *MkdirResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MkdirResponse.Unmarshal(m, b)
}
func (m *MkdirResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MkdirResponse.Marshal(b, m, deterministic)
}
func (m *MkdirResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_MkdirResponse.Merge(m, src)
}
func (m *MkdirResponse) XXX_Size() int {
return xxx_messageInfo_MkdirResponse.Size(m)
}
func (m *MkdirResponse) XXX_DiscardUnknown() {
xxx_messageInfo_MkdirResponse.DiscardUnknown(m)
}
var xxx_messageInfo_MkdirResponse proto.InternalMessageInfo
func (m *MkdirResponse) GetError() string {
if m != nil {
return m.Error
}
return ""
}
type RmdirRequest struct {
// The path to remove in the host's filesystem.
// All special characters allowed by Windows in path names will be allowed
// except for restrictions noted below. For details, please check:
// https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
//
// Restrictions:
// Only absolute path (indicated by a drive letter prefix: e.g. "C:\") is accepted.
// Depending on the context parameter of this function, the path prefix needs
// to match the paths specified either as kubelet-csi-plugins-path
// or as kubelet-pod-path parameters of csi-proxy.
// UNC paths of the form "\\server\share\path\file" are not allowed.
// All directory separators need to be backslash character: "\".
// Characters: .. / : | ? * in the path are not allowed.
// Path cannot be a file of type symlink.
// Maximum path length will be capped to 260 characters.
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// Context of the path parameter.
// This is used to validate prefix for absolute paths passed
Context PathContext `protobuf:"varint,2,opt,name=context,proto3,enum=v1alpha1.PathContext" json:"context,omitempty"`
// Force remove all contents under path (if any).
Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RmdirRequest) Reset() { *m = RmdirRequest{} }
func (m *RmdirRequest) String() string { return proto.CompactTextString(m) }
func (*RmdirRequest) ProtoMessage() {}
func (*RmdirRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_00212fb1f9d3bf1c, []int{4}
}
func (m *RmdirRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RmdirRequest.Unmarshal(m, b)
}
func (m *RmdirRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RmdirRequest.Marshal(b, m, deterministic)
}
func (m *RmdirRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RmdirRequest.Merge(m, src)
}
func (m *RmdirRequest) XXX_Size() int {
return xxx_messageInfo_RmdirRequest.Size(m)
}
func (m *RmdirRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RmdirRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RmdirRequest proto.InternalMessageInfo
func (m *RmdirRequest) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
func (m *RmdirRequest) GetContext() PathContext {
if m != nil {
return m.Context
}
return PathContext_PLUGIN
}
func (m *RmdirRequest) GetForce() bool {
if m != nil {
return m.Force
}
return false
}
type RmdirResponse struct {
// Error message if any. Empty string indicates success
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RmdirResponse) Reset() { *m = RmdirResponse{} }
func (m *RmdirResponse) String() string { return proto.CompactTextString(m) }
func (*RmdirResponse) ProtoMessage() {}
func (*RmdirResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_00212fb1f9d3bf1c, []int{5}
}
func (m *RmdirResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RmdirResponse.Unmarshal(m, b)
}
func (m *RmdirResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RmdirResponse.Marshal(b, m, deterministic)
}
func (m *RmdirResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RmdirResponse.Merge(m, src)
}
func (m *RmdirResponse) XXX_Size() int {
return xxx_messageInfo_RmdirResponse.Size(m)
}
func (m *RmdirResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RmdirResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RmdirResponse proto.InternalMessageInfo
func (m *RmdirResponse) GetError() string {
if m != nil {
return m.Error
}
return ""
}
type LinkPathRequest struct {
// The path where the symlink is created in the host's filesystem.
// All special characters allowed by Windows in path names will be allowed
// except for restrictions noted below. For details, please check:
// https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
//
// Restrictions:
// Only absolute path (indicated by a drive letter prefix: e.g. "C:\") is accepted.
// The path prefix needs needs to match the paths specified as
// kubelet-csi-plugins-path parameter of csi-proxy.
// UNC paths of the form "\\server\share\path\file" are not allowed.
// All directory separators need to be backslash character: "\".
// Characters: .. / : | ? * in the path are not allowed.
// source_path cannot already exist in the host filesystem.
// Maximum path length will be capped to 260 characters.
SourcePath string `protobuf:"bytes,1,opt,name=source_path,json=sourcePath,proto3" json:"source_path,omitempty"`
// Target path in the host's filesystem used for the symlink creation.
// All special characters allowed by Windows in path names will be allowed
// except for restrictions noted below. For details, please check:
// https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
//
// Restrictions:
// Only absolute path (indicated by a drive letter prefix: e.g. "C:\") is accepted.
// The path prefix needs to match the paths specified as
// kubelet-pod-path parameter of csi-proxy.
// UNC paths of the form "\\server\share\path\file" are not allowed.
// All directory separators need to be backslash character: "\".
// Characters: .. / : | ? * in the path are not allowed.
// target_path needs to exist as a directory in the host that is empty.
// target_path cannot be a symbolic link.
// Maximum path length will be capped to 260 characters.
TargetPath string `protobuf:"bytes,2,opt,name=target_path,json=targetPath,proto3" json:"target_path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LinkPathRequest) Reset() { *m = LinkPathRequest{} }
func (m *LinkPathRequest) String() string { return proto.CompactTextString(m) }
func (*LinkPathRequest) ProtoMessage() {}
func (*LinkPathRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_00212fb1f9d3bf1c, []int{6}
}
func (m *LinkPathRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LinkPathRequest.Unmarshal(m, b)
}
func (m *LinkPathRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LinkPathRequest.Marshal(b, m, deterministic)
}
func (m *LinkPathRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_LinkPathRequest.Merge(m, src)
}
func (m *LinkPathRequest) XXX_Size() int {
return xxx_messageInfo_LinkPathRequest.Size(m)
}
func (m *LinkPathRequest) XXX_DiscardUnknown() {
xxx_messageInfo_LinkPathRequest.DiscardUnknown(m)
}
var xxx_messageInfo_LinkPathRequest proto.InternalMessageInfo
func (m *LinkPathRequest) GetSourcePath() string {
if m != nil {
return m.SourcePath
}
return ""
}
func (m *LinkPathRequest) GetTargetPath() string {
if m != nil {
return m.TargetPath
}
return ""
}
type LinkPathResponse struct {
// Error message if any. Empty string indicates success
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LinkPathResponse) Reset() { *m = LinkPathResponse{} }
func (m *LinkPathResponse) String() string { return proto.CompactTextString(m) }
func (*LinkPathResponse) ProtoMessage() {}
func (*LinkPathResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_00212fb1f9d3bf1c, []int{7}
}
func (m *LinkPathResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LinkPathResponse.Unmarshal(m, b)
}
func (m *LinkPathResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LinkPathResponse.Marshal(b, m, deterministic)
}
func (m *LinkPathResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_LinkPathResponse.Merge(m, src)
}
func (m *LinkPathResponse) XXX_Size() int {
return xxx_messageInfo_LinkPathResponse.Size(m)
}
func (m *LinkPathResponse) XXX_DiscardUnknown() {
xxx_messageInfo_LinkPathResponse.DiscardUnknown(m)
}
var xxx_messageInfo_LinkPathResponse proto.InternalMessageInfo
func (m *LinkPathResponse) GetError() string {
if m != nil {
return m.Error
}
return ""
}
func init() {
proto.RegisterEnum("v1alpha1.PathContext", PathContext_name, PathContext_value)
proto.RegisterType((*PathExistsRequest)(nil), "v1alpha1.PathExistsRequest")
proto.RegisterType((*PathExistsResponse)(nil), "v1alpha1.PathExistsResponse")
proto.RegisterType((*MkdirRequest)(nil), "v1alpha1.MkdirRequest")
proto.RegisterType((*MkdirResponse)(nil), "v1alpha1.MkdirResponse")
proto.RegisterType((*RmdirRequest)(nil), "v1alpha1.RmdirRequest")
proto.RegisterType((*RmdirResponse)(nil), "v1alpha1.RmdirResponse")
proto.RegisterType((*LinkPathRequest)(nil), "v1alpha1.LinkPathRequest")
proto.RegisterType((*LinkPathResponse)(nil), "v1alpha1.LinkPathResponse")
}
func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) }
var fileDescriptor_00212fb1f9d3bf1c = []byte{
// 363 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0x5b, 0x4f, 0xf2, 0x40,
0x10, 0xa5, 0xf0, 0x71, 0x1b, 0xf8, 0x14, 0x27, 0x8a, 0x58, 0x4d, 0x24, 0x9b, 0x98, 0x10, 0x1f,
0x30, 0xe0, 0x9b, 0x8f, 0xe2, 0x25, 0x24, 0xa8, 0xa4, 0xc4, 0xc4, 0x37, 0x53, 0x71, 0x95, 0x86,
0xcb, 0xd6, 0xdd, 0xc5, 0xe0, 0xff, 0xf0, 0x07, 0x9b, 0xdd, 0x6d, 0xd3, 0x45, 0x09, 0x4f, 0xbc,
0x75, 0x66, 0xce, 0x9c, 0x39, 0x3b, 0x67, 0x0a, 0x45, 0x3f, 0x0c, 0x9a, 0x21, 0x67, 0x92, 0x61,
0xe1, 0xb3, 0xe5, 0x4f, 0xc2, 0x91, 0xdf, 0x22, 0x4f, 0xb0, 0xd3, 0xf7, 0xe5, 0xe8, 0x7a, 0x11,
0x08, 0x29, 0x3c, 0xfa, 0x31, 0xa7, 0x42, 0x22, 0xc2, 0xbf, 0xd0, 0x97, 0xa3, 0x9a, 0x53, 0x77,
0x1a, 0x45, 0x4f, 0x7f, 0xe3, 0x19, 0xe4, 0x87, 0x6c, 0x26, 0xe9, 0x42, 0xd6, 0xd2, 0x75, 0xa7,
0xb1, 0xd5, 0xde, 0x6b, 0xc6, 0x24, 0x4d, 0xc5, 0xd0, 0x31, 0x45, 0x2f, 0x46, 0x91, 0x4b, 0x40,
0x9b, 0x59, 0x84, 0x6c, 0x26, 0x28, 0xee, 0x42, 0x96, 0x72, 0xce, 0x78, 0xc4, 0x6d, 0x02, 0xac,
0x42, 0x8e, 0x6a, 0x9c, 0xe6, 0x2e, 0x78, 0x51, 0x44, 0x06, 0x50, 0xbe, 0x1b, 0xbf, 0x06, 0x7c,
0xa3, 0xc2, 0x4e, 0xe0, 0x7f, 0x44, 0xba, 0x4e, 0x13, 0x09, 0xa0, 0xec, 0x4d, 0x37, 0x3c, 0x5b,
0x8d, 0x7a, 0x63, 0x7c, 0x48, 0x6b, 0x19, 0xfd, 0x4e, 0x13, 0x28, 0x45, 0xd1, 0xa8, 0xb5, 0x8a,
0x06, 0xb0, 0xdd, 0x0b, 0x66, 0x63, 0x45, 0x1c, 0x8b, 0x3a, 0x86, 0x92, 0x60, 0x73, 0x3e, 0xa4,
0xcf, 0x96, 0x36, 0x30, 0x29, 0x85, 0x53, 0x00, 0xe9, 0xf3, 0x77, 0x2a, 0x0d, 0x20, 0x6d, 0x00,
0x26, 0xa5, 0x00, 0xa4, 0x01, 0x95, 0x84, 0x74, 0xdd, 0xf8, 0x53, 0x02, 0x25, 0xeb, 0x4d, 0x08,
0x90, 0xeb, 0xf7, 0x1e, 0x6f, 0xbb, 0xf7, 0x95, 0x14, 0xe6, 0x21, 0xd3, 0x7f, 0xb8, 0xaa, 0x38,
0xed, 0xef, 0x34, 0xc0, 0x4d, 0x30, 0xa1, 0xe2, 0x4b, 0x48, 0x3a, 0xc5, 0x2e, 0x40, 0x72, 0x03,
0x78, 0xb8, 0xbc, 0x9c, 0xa5, 0x9b, 0x73, 0x8f, 0x56, 0x17, 0x8d, 0x22, 0x92, 0xc2, 0x0b, 0xc8,
0x6a, 0xd7, 0xb0, 0x9a, 0x00, 0xed, 0xdb, 0x70, 0xf7, 0xff, 0xe4, 0xed, 0x5e, 0xbd, 0x5f, 0xbb,
0xd7, 0xf6, 0xd6, 0xee, 0x5d, 0x32, 0x82, 0xa4, 0xb0, 0x03, 0x85, 0x78, 0x3f, 0x78, 0x90, 0xc0,
0x7e, 0x19, 0xe1, 0xba, 0xab, 0x4a, 0x31, 0xc9, 0x4b, 0x4e, 0xff, 0x76, 0xe7, 0x3f, 0x01, 0x00,
0x00, 0xff, 0xff, 0x50, 0x7f, 0x0b, 0x32, 0x83, 0x03, 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
// FilesystemClient is the client API for Filesystem service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type FilesystemClient interface {
// PathExists checks if the requested path exists in the host's filesystem
PathExists(ctx context.Context, in *PathExistsRequest, opts ...grpc.CallOption) (*PathExistsResponse, error)
// Mkdir creates a directory at the requested path in the host's filesystem
Mkdir(ctx context.Context, in *MkdirRequest, opts ...grpc.CallOption) (*MkdirResponse, error)
// Rmdir removes the directory at the requested path in the host's filesystem.
// This may be used for unlinking a symlink created through LinkPath
Rmdir(ctx context.Context, in *RmdirRequest, opts ...grpc.CallOption) (*RmdirResponse, error)
// LinkPath creates a local directory symbolic link between a source path
// and target path in the host's filesystem
LinkPath(ctx context.Context, in *LinkPathRequest, opts ...grpc.CallOption) (*LinkPathResponse, error)
}
type filesystemClient struct {
cc *grpc.ClientConn
}
func NewFilesystemClient(cc *grpc.ClientConn) FilesystemClient {
return &filesystemClient{cc}
}
func (c *filesystemClient) PathExists(ctx context.Context, in *PathExistsRequest, opts ...grpc.CallOption) (*PathExistsResponse, error) {
out := new(PathExistsResponse)
err := c.cc.Invoke(ctx, "/v1alpha1.Filesystem/PathExists", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *filesystemClient) Mkdir(ctx context.Context, in *MkdirRequest, opts ...grpc.CallOption) (*MkdirResponse, error) {
out := new(MkdirResponse)
err := c.cc.Invoke(ctx, "/v1alpha1.Filesystem/Mkdir", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *filesystemClient) Rmdir(ctx context.Context, in *RmdirRequest, opts ...grpc.CallOption) (*RmdirResponse, error) {
out := new(RmdirResponse)
err := c.cc.Invoke(ctx, "/v1alpha1.Filesystem/Rmdir", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *filesystemClient) LinkPath(ctx context.Context, in *LinkPathRequest, opts ...grpc.CallOption) (*LinkPathResponse, error) {
out := new(LinkPathResponse)
err := c.cc.Invoke(ctx, "/v1alpha1.Filesystem/LinkPath", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// FilesystemServer is the server API for Filesystem service.
type FilesystemServer interface {
// PathExists checks if the requested path exists in the host's filesystem
PathExists(context.Context, *PathExistsRequest) (*PathExistsResponse, error)
// Mkdir creates a directory at the requested path in the host's filesystem
Mkdir(context.Context, *MkdirRequest) (*MkdirResponse, error)
// Rmdir removes the directory at the requested path in the host's filesystem.
// This may be used for unlinking a symlink created through LinkPath
Rmdir(context.Context, *RmdirRequest) (*RmdirResponse, error)
// LinkPath creates a local directory symbolic link between a source path
// and target path in the host's filesystem
LinkPath(context.Context, *LinkPathRequest) (*LinkPathResponse, error)
}
// UnimplementedFilesystemServer can be embedded to have forward compatible implementations.
type UnimplementedFilesystemServer struct {
}
func (*UnimplementedFilesystemServer) PathExists(ctx context.Context, req *PathExistsRequest) (*PathExistsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method PathExists not implemented")
}
func (*UnimplementedFilesystemServer) Mkdir(ctx context.Context, req *MkdirRequest) (*MkdirResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Mkdir not implemented")
}
func (*UnimplementedFilesystemServer) Rmdir(ctx context.Context, req *RmdirRequest) (*RmdirResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Rmdir not implemented")
}
func (*UnimplementedFilesystemServer) LinkPath(ctx context.Context, req *LinkPathRequest) (*LinkPathResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method LinkPath not implemented")
}
func RegisterFilesystemServer(s *grpc.Server, srv FilesystemServer) {
s.RegisterService(&_Filesystem_serviceDesc, srv)
}
func _Filesystem_PathExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PathExistsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FilesystemServer).PathExists(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/v1alpha1.Filesystem/PathExists",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FilesystemServer).PathExists(ctx, req.(*PathExistsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Filesystem_Mkdir_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MkdirRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FilesystemServer).Mkdir(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/v1alpha1.Filesystem/Mkdir",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FilesystemServer).Mkdir(ctx, req.(*MkdirRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Filesystem_Rmdir_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RmdirRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FilesystemServer).Rmdir(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/v1alpha1.Filesystem/Rmdir",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FilesystemServer).Rmdir(ctx, req.(*RmdirRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Filesystem_LinkPath_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LinkPathRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FilesystemServer).LinkPath(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/v1alpha1.Filesystem/LinkPath",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FilesystemServer).LinkPath(ctx, req.(*LinkPathRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Filesystem_serviceDesc = grpc.ServiceDesc{
ServiceName: "v1alpha1.Filesystem",
HandlerType: (*FilesystemServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "PathExists",
Handler: _Filesystem_PathExists_Handler,
},
{
MethodName: "Mkdir",
Handler: _Filesystem_Mkdir_Handler,
},
{
MethodName: "Rmdir",
Handler: _Filesystem_Rmdir_Handler,
},
{
MethodName: "LinkPath",
Handler: _Filesystem_LinkPath_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "api.proto",
}