forked from creiht/formic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
formic_api.pb.go
1907 lines (1699 loc) · 76.8 KB
/
formic_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
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go.
// source: formic_api.proto
// DO NOT EDIT!
/*
Package proto is a generated protocol buffer package.
It is generated from these files:
formic_api.proto
It has these top-level messages:
DirEnt
DirEntries
Attr
SetAttrRequest
SetAttrResponse
GetAttrRequest
GetAttrResponse
ReadRequest
ReadResponse
WriteRequest
WriteResponse
MkDirRequest
MkDirResponse
CreateRequest
CreateResponse
RemoveRequest
RemoveResponse
LookupRequest
LookupResponse
ReadDirAllRequest
ReadDirAllResponse
SymlinkRequest
SymlinkResponse
ReadlinkRequest
ReadlinkResponse
GetxattrRequest
GetxattrResponse
SetxattrRequest
SetxattrResponse
ListxattrRequest
ListxattrResponse
RemovexattrRequest
RemovexattrResponse
RenameRequest
RenameResponse
StatfsRequest
StatfsResponse
InitFsRequest
InitFsResponse
InodeEntry
Tombstone
DirEntry
FileBlock
ModFS
CreateFSRequest
CreateFSResponse
ListFSRequest
ListFSResponse
ShowFSRequest
ShowFSResponse
DeleteFSRequest
DeleteFSResponse
UpdateFSRequest
UpdateFSResponse
GrantAddrFSRequest
GrantAddrFSResponse
RevokeAddrFSRequest
RevokeAddrFSResponse
*/
package proto
import proto1 "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto1.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.
const _ = proto1.ProtoPackageIsVersion1
// DirEnt is a directory entry
type DirEnt struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Parent uint64 `protobuf:"varint,2,opt,name=parent" json:"parent,omitempty"`
Type uint32 `protobuf:"varint,3,opt,name=type" json:"type,omitempty"`
}
func (m *DirEnt) Reset() { *m = DirEnt{} }
func (m *DirEnt) String() string { return proto1.CompactTextString(m) }
func (*DirEnt) ProtoMessage() {}
func (*DirEnt) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
// DirEntries just contains a list of directory entries
type DirEntries struct {
DirEntries []*DirEnt `protobuf:"bytes,1,rep,name=DirEntries" json:"DirEntries,omitempty"`
}
func (m *DirEntries) Reset() { *m = DirEntries{} }
func (m *DirEntries) String() string { return proto1.CompactTextString(m) }
func (*DirEntries) ProtoMessage() {}
func (*DirEntries) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *DirEntries) GetDirEntries() []*DirEnt {
if m != nil {
return m.DirEntries
}
return nil
}
// Attr
type Attr struct {
Inode uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
Atime int64 `protobuf:"varint,2,opt,name=atime" json:"atime,omitempty"`
Mtime int64 `protobuf:"varint,3,opt,name=mtime" json:"mtime,omitempty"`
Ctime int64 `protobuf:"varint,4,opt,name=ctime" json:"ctime,omitempty"`
Crtime int64 `protobuf:"varint,5,opt,name=crtime" json:"crtime,omitempty"`
Mode uint32 `protobuf:"varint,6,opt,name=mode" json:"mode,omitempty"`
Valid int32 `protobuf:"varint,7,opt,name=valid" json:"valid,omitempty"`
Size uint64 `protobuf:"varint,8,opt,name=size" json:"size,omitempty"`
Uid uint32 `protobuf:"varint,9,opt,name=uid" json:"uid,omitempty"`
Gid uint32 `protobuf:"varint,10,opt,name=gid" json:"gid,omitempty"`
}
func (m *Attr) Reset() { *m = Attr{} }
func (m *Attr) String() string { return proto1.CompactTextString(m) }
func (*Attr) ProtoMessage() {}
func (*Attr) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
// SetAttrRequest
type SetAttrRequest struct {
Attr *Attr `protobuf:"bytes,1,opt,name=attr" json:"attr,omitempty"`
Valid uint32 `protobuf:"varint,2,opt,name=valid" json:"valid,omitempty"`
}
func (m *SetAttrRequest) Reset() { *m = SetAttrRequest{} }
func (m *SetAttrRequest) String() string { return proto1.CompactTextString(m) }
func (*SetAttrRequest) ProtoMessage() {}
func (*SetAttrRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *SetAttrRequest) GetAttr() *Attr {
if m != nil {
return m.Attr
}
return nil
}
// SetAttrResponse
type SetAttrResponse struct {
Attr *Attr `protobuf:"bytes,1,opt,name=attr" json:"attr,omitempty"`
}
func (m *SetAttrResponse) Reset() { *m = SetAttrResponse{} }
func (m *SetAttrResponse) String() string { return proto1.CompactTextString(m) }
func (*SetAttrResponse) ProtoMessage() {}
func (*SetAttrResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *SetAttrResponse) GetAttr() *Attr {
if m != nil {
return m.Attr
}
return nil
}
// GetAttrRequest
type GetAttrRequest struct {
Inode uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
}
func (m *GetAttrRequest) Reset() { *m = GetAttrRequest{} }
func (m *GetAttrRequest) String() string { return proto1.CompactTextString(m) }
func (*GetAttrRequest) ProtoMessage() {}
func (*GetAttrRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
// GetAttrResponse
type GetAttrResponse struct {
Attr *Attr `protobuf:"bytes,1,opt,name=attr" json:"attr,omitempty"`
}
func (m *GetAttrResponse) Reset() { *m = GetAttrResponse{} }
func (m *GetAttrResponse) String() string { return proto1.CompactTextString(m) }
func (*GetAttrResponse) ProtoMessage() {}
func (*GetAttrResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *GetAttrResponse) GetAttr() *Attr {
if m != nil {
return m.Attr
}
return nil
}
// ReqadRequest
type ReadRequest struct {
Inode uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
Offset int64 `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"`
Size int64 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"`
}
func (m *ReadRequest) Reset() { *m = ReadRequest{} }
func (m *ReadRequest) String() string { return proto1.CompactTextString(m) }
func (*ReadRequest) ProtoMessage() {}
func (*ReadRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
// ReadResponse
type ReadResponse struct {
Inode uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
}
func (m *ReadResponse) Reset() { *m = ReadResponse{} }
func (m *ReadResponse) String() string { return proto1.CompactTextString(m) }
func (*ReadResponse) ProtoMessage() {}
func (*ReadResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
// WriteRequest
type WriteRequest struct {
Inode uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
Offset int64 `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"`
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
}
func (m *WriteRequest) Reset() { *m = WriteRequest{} }
func (m *WriteRequest) String() string { return proto1.CompactTextString(m) }
func (*WriteRequest) ProtoMessage() {}
func (*WriteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
// WriteResponse place holder. Maybe use an enum so
// we can map to fuse errors ?
type WriteResponse struct {
Status int32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
}
func (m *WriteResponse) Reset() { *m = WriteResponse{} }
func (m *WriteResponse) String() string { return proto1.CompactTextString(m) }
func (*WriteResponse) ProtoMessage() {}
func (*WriteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
// MkdirRequest
type MkDirRequest struct {
Parent uint64 `protobuf:"varint,1,opt,name=parent" json:"parent,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Attr *Attr `protobuf:"bytes,3,opt,name=attr" json:"attr,omitempty"`
}
func (m *MkDirRequest) Reset() { *m = MkDirRequest{} }
func (m *MkDirRequest) String() string { return proto1.CompactTextString(m) }
func (*MkDirRequest) ProtoMessage() {}
func (*MkDirRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
func (m *MkDirRequest) GetAttr() *Attr {
if m != nil {
return m.Attr
}
return nil
}
// MkdirResponse
type MkDirResponse struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Attr *Attr `protobuf:"bytes,2,opt,name=attr" json:"attr,omitempty"`
}
func (m *MkDirResponse) Reset() { *m = MkDirResponse{} }
func (m *MkDirResponse) String() string { return proto1.CompactTextString(m) }
func (*MkDirResponse) ProtoMessage() {}
func (*MkDirResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
func (m *MkDirResponse) GetAttr() *Attr {
if m != nil {
return m.Attr
}
return nil
}
// CreateRequest
type CreateRequest struct {
Parent uint64 `protobuf:"varint,1,opt,name=parent" json:"parent,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Attr *Attr `protobuf:"bytes,3,opt,name=attr" json:"attr,omitempty"`
}
func (m *CreateRequest) Reset() { *m = CreateRequest{} }
func (m *CreateRequest) String() string { return proto1.CompactTextString(m) }
func (*CreateRequest) ProtoMessage() {}
func (*CreateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
func (m *CreateRequest) GetAttr() *Attr {
if m != nil {
return m.Attr
}
return nil
}
// CreateResponse
type CreateResponse struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Attr *Attr `protobuf:"bytes,2,opt,name=attr" json:"attr,omitempty"`
}
func (m *CreateResponse) Reset() { *m = CreateResponse{} }
func (m *CreateResponse) String() string { return proto1.CompactTextString(m) }
func (*CreateResponse) ProtoMessage() {}
func (*CreateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
func (m *CreateResponse) GetAttr() *Attr {
if m != nil {
return m.Attr
}
return nil
}
// RemoveRequest
type RemoveRequest struct {
Parent uint64 `protobuf:"varint,1,opt,name=parent" json:"parent,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}
func (m *RemoveRequest) Reset() { *m = RemoveRequest{} }
func (m *RemoveRequest) String() string { return proto1.CompactTextString(m) }
func (*RemoveRequest) ProtoMessage() {}
func (*RemoveRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
// RemoveResponse
type RemoveResponse struct {
Status int32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
}
func (m *RemoveResponse) Reset() { *m = RemoveResponse{} }
func (m *RemoveResponse) String() string { return proto1.CompactTextString(m) }
func (*RemoveResponse) ProtoMessage() {}
func (*RemoveResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
// LookupRequest
type LookupRequest struct {
Parent uint64 `protobuf:"varint,1,opt,name=parent" json:"parent,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}
func (m *LookupRequest) Reset() { *m = LookupRequest{} }
func (m *LookupRequest) String() string { return proto1.CompactTextString(m) }
func (*LookupRequest) ProtoMessage() {}
func (*LookupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
// LookupResponse is a directory entry
type LookupResponse struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Attr *Attr `protobuf:"bytes,2,opt,name=attr" json:"attr,omitempty"`
}
func (m *LookupResponse) Reset() { *m = LookupResponse{} }
func (m *LookupResponse) String() string { return proto1.CompactTextString(m) }
func (*LookupResponse) ProtoMessage() {}
func (*LookupResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
func (m *LookupResponse) GetAttr() *Attr {
if m != nil {
return m.Attr
}
return nil
}
// ReadDirAllRequest
type ReadDirAllRequest struct {
Inode uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
}
func (m *ReadDirAllRequest) Reset() { *m = ReadDirAllRequest{} }
func (m *ReadDirAllRequest) String() string { return proto1.CompactTextString(m) }
func (*ReadDirAllRequest) ProtoMessage() {}
func (*ReadDirAllRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
// ReadDirAllResponse
type ReadDirAllResponse struct {
DirEntries []*DirEnt `protobuf:"bytes,1,rep,name=DirEntries" json:"DirEntries,omitempty"`
}
func (m *ReadDirAllResponse) Reset() { *m = ReadDirAllResponse{} }
func (m *ReadDirAllResponse) String() string { return proto1.CompactTextString(m) }
func (*ReadDirAllResponse) ProtoMessage() {}
func (*ReadDirAllResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
func (m *ReadDirAllResponse) GetDirEntries() []*DirEnt {
if m != nil {
return m.DirEntries
}
return nil
}
// SymlinkRequest
type SymlinkRequest struct {
Parent uint64 `protobuf:"varint,1,opt,name=parent" json:"parent,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Target string `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
Uid uint32 `protobuf:"varint,4,opt,name=uid" json:"uid,omitempty"`
Gid uint32 `protobuf:"varint,5,opt,name=gid" json:"gid,omitempty"`
}
func (m *SymlinkRequest) Reset() { *m = SymlinkRequest{} }
func (m *SymlinkRequest) String() string { return proto1.CompactTextString(m) }
func (*SymlinkRequest) ProtoMessage() {}
func (*SymlinkRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
// SymlinkResponse
type SymlinkResponse struct {
Parent uint64 `protobuf:"varint,1,opt,name=parent" json:"parent,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Attr *Attr `protobuf:"bytes,3,opt,name=attr" json:"attr,omitempty"`
}
func (m *SymlinkResponse) Reset() { *m = SymlinkResponse{} }
func (m *SymlinkResponse) String() string { return proto1.CompactTextString(m) }
func (*SymlinkResponse) ProtoMessage() {}
func (*SymlinkResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
func (m *SymlinkResponse) GetAttr() *Attr {
if m != nil {
return m.Attr
}
return nil
}
// ReadlinkRequest
type ReadlinkRequest struct {
Inode uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
}
func (m *ReadlinkRequest) Reset() { *m = ReadlinkRequest{} }
func (m *ReadlinkRequest) String() string { return proto1.CompactTextString(m) }
func (*ReadlinkRequest) ProtoMessage() {}
func (*ReadlinkRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} }
// ReadlinkResponse
type ReadlinkResponse struct {
Target string `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"`
}
func (m *ReadlinkResponse) Reset() { *m = ReadlinkResponse{} }
func (m *ReadlinkResponse) String() string { return proto1.CompactTextString(m) }
func (*ReadlinkResponse) ProtoMessage() {}
func (*ReadlinkResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} }
// Getxattr
type GetxattrRequest struct {
Inode uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Size uint32 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"`
Position uint32 `protobuf:"varint,4,opt,name=position" json:"position,omitempty"`
}
func (m *GetxattrRequest) Reset() { *m = GetxattrRequest{} }
func (m *GetxattrRequest) String() string { return proto1.CompactTextString(m) }
func (*GetxattrRequest) ProtoMessage() {}
func (*GetxattrRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} }
type GetxattrResponse struct {
Xattr []byte `protobuf:"bytes,1,opt,name=xattr,proto3" json:"xattr,omitempty"`
}
func (m *GetxattrResponse) Reset() { *m = GetxattrResponse{} }
func (m *GetxattrResponse) String() string { return proto1.CompactTextString(m) }
func (*GetxattrResponse) ProtoMessage() {}
func (*GetxattrResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{26} }
// Setxattr
type SetxattrRequest struct {
Inode uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
Position uint32 `protobuf:"varint,4,opt,name=position" json:"position,omitempty"`
Flags uint32 `protobuf:"varint,5,opt,name=flags" json:"flags,omitempty"`
}
func (m *SetxattrRequest) Reset() { *m = SetxattrRequest{} }
func (m *SetxattrRequest) String() string { return proto1.CompactTextString(m) }
func (*SetxattrRequest) ProtoMessage() {}
func (*SetxattrRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{27} }
type SetxattrResponse struct {
}
func (m *SetxattrResponse) Reset() { *m = SetxattrResponse{} }
func (m *SetxattrResponse) String() string { return proto1.CompactTextString(m) }
func (*SetxattrResponse) ProtoMessage() {}
func (*SetxattrResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{28} }
// Listxattr
type ListxattrRequest struct {
Inode uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
Size uint32 `protobuf:"varint,2,opt,name=size" json:"size,omitempty"`
Position uint32 `protobuf:"varint,3,opt,name=position" json:"position,omitempty"`
}
func (m *ListxattrRequest) Reset() { *m = ListxattrRequest{} }
func (m *ListxattrRequest) String() string { return proto1.CompactTextString(m) }
func (*ListxattrRequest) ProtoMessage() {}
func (*ListxattrRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{29} }
type ListxattrResponse struct {
Xattr []byte `protobuf:"bytes,1,opt,name=xattr,proto3" json:"xattr,omitempty"`
}
func (m *ListxattrResponse) Reset() { *m = ListxattrResponse{} }
func (m *ListxattrResponse) String() string { return proto1.CompactTextString(m) }
func (*ListxattrResponse) ProtoMessage() {}
func (*ListxattrResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{30} }
// Removexattr
type RemovexattrRequest struct {
Inode uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}
func (m *RemovexattrRequest) Reset() { *m = RemovexattrRequest{} }
func (m *RemovexattrRequest) String() string { return proto1.CompactTextString(m) }
func (*RemovexattrRequest) ProtoMessage() {}
func (*RemovexattrRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{31} }
type RemovexattrResponse struct {
}
func (m *RemovexattrResponse) Reset() { *m = RemovexattrResponse{} }
func (m *RemovexattrResponse) String() string { return proto1.CompactTextString(m) }
func (*RemovexattrResponse) ProtoMessage() {}
func (*RemovexattrResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{32} }
// Rename
type RenameRequest struct {
OldParent uint64 `protobuf:"varint,1,opt,name=oldParent" json:"oldParent,omitempty"`
NewParent uint64 `protobuf:"varint,2,opt,name=newParent" json:"newParent,omitempty"`
OldName string `protobuf:"bytes,3,opt,name=oldName" json:"oldName,omitempty"`
NewName string `protobuf:"bytes,4,opt,name=newName" json:"newName,omitempty"`
}
func (m *RenameRequest) Reset() { *m = RenameRequest{} }
func (m *RenameRequest) String() string { return proto1.CompactTextString(m) }
func (*RenameRequest) ProtoMessage() {}
func (*RenameRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{33} }
type RenameResponse struct {
}
func (m *RenameResponse) Reset() { *m = RenameResponse{} }
func (m *RenameResponse) String() string { return proto1.CompactTextString(m) }
func (*RenameResponse) ProtoMessage() {}
func (*RenameResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{34} }
// Statfs
type StatfsRequest struct {
}
func (m *StatfsRequest) Reset() { *m = StatfsRequest{} }
func (m *StatfsRequest) String() string { return proto1.CompactTextString(m) }
func (*StatfsRequest) ProtoMessage() {}
func (*StatfsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{35} }
type StatfsResponse struct {
Blocks uint64 `protobuf:"varint,1,opt,name=blocks" json:"blocks,omitempty"`
Bfree uint64 `protobuf:"varint,2,opt,name=bfree" json:"bfree,omitempty"`
Bavail uint64 `protobuf:"varint,3,opt,name=bavail" json:"bavail,omitempty"`
Files uint64 `protobuf:"varint,4,opt,name=files" json:"files,omitempty"`
Ffree uint64 `protobuf:"varint,5,opt,name=ffree" json:"ffree,omitempty"`
Bsize uint32 `protobuf:"varint,6,opt,name=bsize" json:"bsize,omitempty"`
Namelen uint32 `protobuf:"varint,7,opt,name=namelen" json:"namelen,omitempty"`
Frsize uint32 `protobuf:"varint,8,opt,name=frsize" json:"frsize,omitempty"`
}
func (m *StatfsResponse) Reset() { *m = StatfsResponse{} }
func (m *StatfsResponse) String() string { return proto1.CompactTextString(m) }
func (*StatfsResponse) ProtoMessage() {}
func (*StatfsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{36} }
// InitFs
type InitFsRequest struct {
}
func (m *InitFsRequest) Reset() { *m = InitFsRequest{} }
func (m *InitFsRequest) String() string { return proto1.CompactTextString(m) }
func (*InitFsRequest) ProtoMessage() {}
func (*InitFsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{37} }
type InitFsResponse struct {
}
func (m *InitFsResponse) Reset() { *m = InitFsResponse{} }
func (m *InitFsResponse) String() string { return proto1.CompactTextString(m) }
func (*InitFsResponse) ProtoMessage() {}
func (*InitFsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{38} }
// Inode
// This is used for serialization of the inode metadata
// This is *not* used for api calls
type InodeEntry struct {
Version uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
IsDir bool `protobuf:"varint,2,opt,name=isDir" json:"isDir,omitempty"`
Attr *Attr `protobuf:"bytes,3,opt,name=attr" json:"attr,omitempty"`
Parent uint64 `protobuf:"varint,4,opt,name=parent" json:"parent,omitempty"`
Inode uint64 `protobuf:"varint,5,opt,name=inode" json:"inode,omitempty"`
NodeCount uint64 `protobuf:"varint,6,opt,name=nodeCount" json:"nodeCount,omitempty"`
IsLink bool `protobuf:"varint,7,opt,name=isLink" json:"isLink,omitempty"`
Target string `protobuf:"bytes,8,opt,name=target" json:"target,omitempty"`
Xattr map[string][]byte `protobuf:"bytes,9,rep,name=xattr" json:"xattr,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value,proto3"`
Blocks uint64 `protobuf:"varint,10,opt,name=blocks" json:"blocks,omitempty"`
BlockSize uint64 `protobuf:"varint,11,opt,name=blockSize" json:"blockSize,omitempty"`
LastBlock uint64 `protobuf:"varint,12,opt,name=lastBlock" json:"lastBlock,omitempty"`
FsId []byte `protobuf:"bytes,13,opt,name=fsId,proto3" json:"fsId,omitempty"`
}
func (m *InodeEntry) Reset() { *m = InodeEntry{} }
func (m *InodeEntry) String() string { return proto1.CompactTextString(m) }
func (*InodeEntry) ProtoMessage() {}
func (*InodeEntry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{39} }
func (m *InodeEntry) GetAttr() *Attr {
if m != nil {
return m.Attr
}
return nil
}
func (m *InodeEntry) GetXattr() map[string][]byte {
if m != nil {
return m.Xattr
}
return nil
}
// Tombstone
// Stores information needed to keep track of deleted items
type Tombstone struct {
Dtime int64 `protobuf:"varint,1,opt,name=dtime" json:"dtime,omitempty"`
Qtime int64 `protobuf:"varint,2,opt,name=qtime" json:"qtime,omitempty"`
FsId []byte `protobuf:"bytes,3,opt,name=fsId,proto3" json:"fsId,omitempty"`
Inode uint64 `protobuf:"varint,4,opt,name=inode" json:"inode,omitempty"`
Blocks uint64 `protobuf:"varint,5,opt,name=blocks" json:"blocks,omitempty"`
}
func (m *Tombstone) Reset() { *m = Tombstone{} }
func (m *Tombstone) String() string { return proto1.CompactTextString(m) }
func (*Tombstone) ProtoMessage() {}
func (*Tombstone) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{40} }
// DirEntry
// This is used for the serialization of dir info in the group score
// This is *not* used for api calls
type DirEntry struct {
Version uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Id []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
Tombstone *Tombstone `protobuf:"bytes,4,opt,name=tombstone" json:"tombstone,omitempty"`
Type uint32 `protobuf:"varint,5,opt,name=type" json:"type,omitempty"`
}
func (m *DirEntry) Reset() { *m = DirEntry{} }
func (m *DirEntry) String() string { return proto1.CompactTextString(m) }
func (*DirEntry) ProtoMessage() {}
func (*DirEntry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{41} }
func (m *DirEntry) GetTombstone() *Tombstone {
if m != nil {
return m.Tombstone
}
return nil
}
// FileBlock
// This is used for storing blocks in value store
// This is *not* used for api calls
type FileBlock struct {
Version uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
Checksum uint32 `protobuf:"varint,3,opt,name=checksum" json:"checksum,omitempty"`
}
func (m *FileBlock) Reset() { *m = FileBlock{} }
func (m *FileBlock) String() string { return proto1.CompactTextString(m) }
func (*FileBlock) ProtoMessage() {}
func (*FileBlock) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{42} }
// ModFS ...
type ModFS struct {
Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
Status string `protobuf:"bytes,2,opt,name=Status" json:"Status,omitempty"`
}
func (m *ModFS) Reset() { *m = ModFS{} }
func (m *ModFS) String() string { return proto1.CompactTextString(m) }
func (*ModFS) ProtoMessage() {}
func (*ModFS) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{43} }
// Request to create a new filesystem
type CreateFSRequest struct {
Token string `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
FSName string `protobuf:"bytes,2,opt,name=FSName" json:"FSName,omitempty"`
}
func (m *CreateFSRequest) Reset() { *m = CreateFSRequest{} }
func (m *CreateFSRequest) String() string { return proto1.CompactTextString(m) }
func (*CreateFSRequest) ProtoMessage() {}
func (*CreateFSRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{44} }
// Response from creating a new filesystem
type CreateFSResponse struct {
Data string `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"`
}
func (m *CreateFSResponse) Reset() { *m = CreateFSResponse{} }
func (m *CreateFSResponse) String() string { return proto1.CompactTextString(m) }
func (*CreateFSResponse) ProtoMessage() {}
func (*CreateFSResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{45} }
// Request a list of all file systems for a given account
type ListFSRequest struct {
Token string `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
}
func (m *ListFSRequest) Reset() { *m = ListFSRequest{} }
func (m *ListFSRequest) String() string { return proto1.CompactTextString(m) }
func (*ListFSRequest) ProtoMessage() {}
func (*ListFSRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{46} }
// Response for displaying a list of all an accounts file systems.
type ListFSResponse struct {
Data string `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"`
}
func (m *ListFSResponse) Reset() { *m = ListFSResponse{} }
func (m *ListFSResponse) String() string { return proto1.CompactTextString(m) }
func (*ListFSResponse) ProtoMessage() {}
func (*ListFSResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{47} }
// Request to show the specific details about a file system
type ShowFSRequest struct {
Token string `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
FSid string `protobuf:"bytes,2,opt,name=FSid" json:"FSid,omitempty"`
}
func (m *ShowFSRequest) Reset() { *m = ShowFSRequest{} }
func (m *ShowFSRequest) String() string { return proto1.CompactTextString(m) }
func (*ShowFSRequest) ProtoMessage() {}
func (*ShowFSRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{48} }
// Response for a specific file system for an account.
type ShowFSResponse struct {
Data string `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"`
}
func (m *ShowFSResponse) Reset() { *m = ShowFSResponse{} }
func (m *ShowFSResponse) String() string { return proto1.CompactTextString(m) }
func (*ShowFSResponse) ProtoMessage() {}
func (*ShowFSResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{49} }
// Request to delete a specific file system
type DeleteFSRequest struct {
Token string `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
FSid string `protobuf:"bytes,2,opt,name=FSid" json:"FSid,omitempty"`
}
func (m *DeleteFSRequest) Reset() { *m = DeleteFSRequest{} }
func (m *DeleteFSRequest) String() string { return proto1.CompactTextString(m) }
func (*DeleteFSRequest) ProtoMessage() {}
func (*DeleteFSRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{50} }
// Response from deleting a file system
type DeleteFSResponse struct {
Data string `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"`
}
func (m *DeleteFSResponse) Reset() { *m = DeleteFSResponse{} }
func (m *DeleteFSResponse) String() string { return proto1.CompactTextString(m) }
func (*DeleteFSResponse) ProtoMessage() {}
func (*DeleteFSResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{51} }
// Request to update a specific file system's information
type UpdateFSRequest struct {
Token string `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
FSid string `protobuf:"bytes,2,opt,name=FSid" json:"FSid,omitempty"`
Filesys *ModFS `protobuf:"bytes,4,opt,name=Filesys" json:"Filesys,omitempty"`
}
func (m *UpdateFSRequest) Reset() { *m = UpdateFSRequest{} }
func (m *UpdateFSRequest) String() string { return proto1.CompactTextString(m) }
func (*UpdateFSRequest) ProtoMessage() {}
func (*UpdateFSRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{52} }
func (m *UpdateFSRequest) GetFilesys() *ModFS {
if m != nil {
return m.Filesys
}
return nil
}
// Response from an update operation
type UpdateFSResponse struct {
Data string `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"`
}
func (m *UpdateFSResponse) Reset() { *m = UpdateFSResponse{} }
func (m *UpdateFSResponse) String() string { return proto1.CompactTextString(m) }
func (*UpdateFSResponse) ProtoMessage() {}
func (*UpdateFSResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{53} }
// Request grant an ip address access to a file system
type GrantAddrFSRequest struct {
Token string `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
FSid string `protobuf:"bytes,2,opt,name=FSid" json:"FSid,omitempty"`
Addr string `protobuf:"bytes,3,opt,name=Addr" json:"Addr,omitempty"`
}
func (m *GrantAddrFSRequest) Reset() { *m = GrantAddrFSRequest{} }
func (m *GrantAddrFSRequest) String() string { return proto1.CompactTextString(m) }
func (*GrantAddrFSRequest) ProtoMessage() {}
func (*GrantAddrFSRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{54} }
// Response from granting ip address access to a file system
type GrantAddrFSResponse struct {
Data string `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"`
}
func (m *GrantAddrFSResponse) Reset() { *m = GrantAddrFSResponse{} }
func (m *GrantAddrFSResponse) String() string { return proto1.CompactTextString(m) }
func (*GrantAddrFSResponse) ProtoMessage() {}
func (*GrantAddrFSResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{55} }
// Request revoke an ip address access to a file system
type RevokeAddrFSRequest struct {
Token string `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
FSid string `protobuf:"bytes,2,opt,name=FSid" json:"FSid,omitempty"`
Addr string `protobuf:"bytes,3,opt,name=Addr" json:"Addr,omitempty"`
}
func (m *RevokeAddrFSRequest) Reset() { *m = RevokeAddrFSRequest{} }
func (m *RevokeAddrFSRequest) String() string { return proto1.CompactTextString(m) }
func (*RevokeAddrFSRequest) ProtoMessage() {}
func (*RevokeAddrFSRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{56} }
// Response from revoking ip address access to a file system
type RevokeAddrFSResponse struct {
Data string `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"`
}
func (m *RevokeAddrFSResponse) Reset() { *m = RevokeAddrFSResponse{} }
func (m *RevokeAddrFSResponse) String() string { return proto1.CompactTextString(m) }
func (*RevokeAddrFSResponse) ProtoMessage() {}
func (*RevokeAddrFSResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{57} }
func init() {
proto1.RegisterType((*DirEnt)(nil), "proto.DirEnt")
proto1.RegisterType((*DirEntries)(nil), "proto.DirEntries")
proto1.RegisterType((*Attr)(nil), "proto.Attr")
proto1.RegisterType((*SetAttrRequest)(nil), "proto.SetAttrRequest")
proto1.RegisterType((*SetAttrResponse)(nil), "proto.SetAttrResponse")
proto1.RegisterType((*GetAttrRequest)(nil), "proto.GetAttrRequest")
proto1.RegisterType((*GetAttrResponse)(nil), "proto.GetAttrResponse")
proto1.RegisterType((*ReadRequest)(nil), "proto.ReadRequest")
proto1.RegisterType((*ReadResponse)(nil), "proto.ReadResponse")
proto1.RegisterType((*WriteRequest)(nil), "proto.WriteRequest")
proto1.RegisterType((*WriteResponse)(nil), "proto.WriteResponse")
proto1.RegisterType((*MkDirRequest)(nil), "proto.MkDirRequest")
proto1.RegisterType((*MkDirResponse)(nil), "proto.MkDirResponse")
proto1.RegisterType((*CreateRequest)(nil), "proto.CreateRequest")
proto1.RegisterType((*CreateResponse)(nil), "proto.CreateResponse")
proto1.RegisterType((*RemoveRequest)(nil), "proto.RemoveRequest")
proto1.RegisterType((*RemoveResponse)(nil), "proto.RemoveResponse")
proto1.RegisterType((*LookupRequest)(nil), "proto.LookupRequest")
proto1.RegisterType((*LookupResponse)(nil), "proto.LookupResponse")
proto1.RegisterType((*ReadDirAllRequest)(nil), "proto.ReadDirAllRequest")
proto1.RegisterType((*ReadDirAllResponse)(nil), "proto.ReadDirAllResponse")
proto1.RegisterType((*SymlinkRequest)(nil), "proto.SymlinkRequest")
proto1.RegisterType((*SymlinkResponse)(nil), "proto.SymlinkResponse")
proto1.RegisterType((*ReadlinkRequest)(nil), "proto.ReadlinkRequest")
proto1.RegisterType((*ReadlinkResponse)(nil), "proto.ReadlinkResponse")
proto1.RegisterType((*GetxattrRequest)(nil), "proto.GetxattrRequest")
proto1.RegisterType((*GetxattrResponse)(nil), "proto.GetxattrResponse")
proto1.RegisterType((*SetxattrRequest)(nil), "proto.SetxattrRequest")
proto1.RegisterType((*SetxattrResponse)(nil), "proto.SetxattrResponse")
proto1.RegisterType((*ListxattrRequest)(nil), "proto.ListxattrRequest")
proto1.RegisterType((*ListxattrResponse)(nil), "proto.ListxattrResponse")
proto1.RegisterType((*RemovexattrRequest)(nil), "proto.RemovexattrRequest")
proto1.RegisterType((*RemovexattrResponse)(nil), "proto.RemovexattrResponse")
proto1.RegisterType((*RenameRequest)(nil), "proto.RenameRequest")
proto1.RegisterType((*RenameResponse)(nil), "proto.RenameResponse")
proto1.RegisterType((*StatfsRequest)(nil), "proto.StatfsRequest")
proto1.RegisterType((*StatfsResponse)(nil), "proto.StatfsResponse")
proto1.RegisterType((*InitFsRequest)(nil), "proto.InitFsRequest")
proto1.RegisterType((*InitFsResponse)(nil), "proto.InitFsResponse")
proto1.RegisterType((*InodeEntry)(nil), "proto.InodeEntry")
proto1.RegisterType((*Tombstone)(nil), "proto.Tombstone")
proto1.RegisterType((*DirEntry)(nil), "proto.DirEntry")
proto1.RegisterType((*FileBlock)(nil), "proto.FileBlock")
proto1.RegisterType((*ModFS)(nil), "proto.ModFS")
proto1.RegisterType((*CreateFSRequest)(nil), "proto.CreateFSRequest")
proto1.RegisterType((*CreateFSResponse)(nil), "proto.CreateFSResponse")
proto1.RegisterType((*ListFSRequest)(nil), "proto.ListFSRequest")
proto1.RegisterType((*ListFSResponse)(nil), "proto.ListFSResponse")
proto1.RegisterType((*ShowFSRequest)(nil), "proto.ShowFSRequest")
proto1.RegisterType((*ShowFSResponse)(nil), "proto.ShowFSResponse")
proto1.RegisterType((*DeleteFSRequest)(nil), "proto.DeleteFSRequest")
proto1.RegisterType((*DeleteFSResponse)(nil), "proto.DeleteFSResponse")
proto1.RegisterType((*UpdateFSRequest)(nil), "proto.UpdateFSRequest")
proto1.RegisterType((*UpdateFSResponse)(nil), "proto.UpdateFSResponse")
proto1.RegisterType((*GrantAddrFSRequest)(nil), "proto.GrantAddrFSRequest")
proto1.RegisterType((*GrantAddrFSResponse)(nil), "proto.GrantAddrFSResponse")
proto1.RegisterType((*RevokeAddrFSRequest)(nil), "proto.RevokeAddrFSRequest")
proto1.RegisterType((*RevokeAddrFSResponse)(nil), "proto.RevokeAddrFSResponse")
}
// 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.SupportPackageIsVersion2
// Client API for Api service
type ApiClient interface {
SetAttr(ctx context.Context, in *SetAttrRequest, opts ...grpc.CallOption) (*SetAttrResponse, error)
GetAttr(ctx context.Context, in *GetAttrRequest, opts ...grpc.CallOption) (*GetAttrResponse, error)
Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error)
Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error)
MkDir(ctx context.Context, in *MkDirRequest, opts ...grpc.CallOption) (*MkDirResponse, error)
Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error)
Lookup(ctx context.Context, in *LookupRequest, opts ...grpc.CallOption) (*LookupResponse, error)
ReadDirAll(ctx context.Context, in *ReadDirAllRequest, opts ...grpc.CallOption) (*ReadDirAllResponse, error)
Symlink(ctx context.Context, in *SymlinkRequest, opts ...grpc.CallOption) (*SymlinkResponse, error)
Readlink(ctx context.Context, in *ReadlinkRequest, opts ...grpc.CallOption) (*ReadlinkResponse, error)
Getxattr(ctx context.Context, in *GetxattrRequest, opts ...grpc.CallOption) (*GetxattrResponse, error)
Setxattr(ctx context.Context, in *SetxattrRequest, opts ...grpc.CallOption) (*SetxattrResponse, error)
Listxattr(ctx context.Context, in *ListxattrRequest, opts ...grpc.CallOption) (*ListxattrResponse, error)
Removexattr(ctx context.Context, in *RemovexattrRequest, opts ...grpc.CallOption) (*RemovexattrResponse, error)
Rename(ctx context.Context, in *RenameRequest, opts ...grpc.CallOption) (*RenameResponse, error)
Statfs(ctx context.Context, in *StatfsRequest, opts ...grpc.CallOption) (*StatfsResponse, error)
InitFs(ctx context.Context, in *InitFsRequest, opts ...grpc.CallOption) (*InitFsResponse, error)
}
type apiClient struct {
cc *grpc.ClientConn
}
func NewApiClient(cc *grpc.ClientConn) ApiClient {
return &apiClient{cc}
}
func (c *apiClient) SetAttr(ctx context.Context, in *SetAttrRequest, opts ...grpc.CallOption) (*SetAttrResponse, error) {
out := new(SetAttrResponse)
err := grpc.Invoke(ctx, "/proto.Api/SetAttr", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *apiClient) GetAttr(ctx context.Context, in *GetAttrRequest, opts ...grpc.CallOption) (*GetAttrResponse, error) {
out := new(GetAttrResponse)
err := grpc.Invoke(ctx, "/proto.Api/GetAttr", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *apiClient) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) {
out := new(ReadResponse)
err := grpc.Invoke(ctx, "/proto.Api/Read", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *apiClient) Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) {
out := new(WriteResponse)
err := grpc.Invoke(ctx, "/proto.Api/Write", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *apiClient) MkDir(ctx context.Context, in *MkDirRequest, opts ...grpc.CallOption) (*MkDirResponse, error) {
out := new(MkDirResponse)
err := grpc.Invoke(ctx, "/proto.Api/MkDir", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *apiClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) {