You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

895 lines
33 KiB

  1. // Code generated by protoc-gen-go.
  2. // source: filer.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package filer_pb is a generated protocol buffer package.
  6. It is generated from these files:
  7. filer.proto
  8. It has these top-level messages:
  9. LookupDirectoryEntryRequest
  10. LookupDirectoryEntryResponse
  11. ListEntriesRequest
  12. ListEntriesResponse
  13. Entry
  14. FileChunk
  15. FuseAttributes
  16. GetEntryAttributesRequest
  17. GetEntryAttributesResponse
  18. GetFileContentRequest
  19. GetFileContentResponse
  20. CreateEntryRequest
  21. CreateEntryResponse
  22. DeleteEntryRequest
  23. DeleteEntryResponse
  24. AssignVolumeRequest
  25. AssignVolumeResponse
  26. UpdateEntryRequest
  27. UpdateEntryResponse
  28. */
  29. package filer_pb
  30. import proto "github.com/golang/protobuf/proto"
  31. import fmt "fmt"
  32. import math "math"
  33. import (
  34. context "golang.org/x/net/context"
  35. grpc "google.golang.org/grpc"
  36. )
  37. // Reference imports to suppress errors if they are not otherwise used.
  38. var _ = proto.Marshal
  39. var _ = fmt.Errorf
  40. var _ = math.Inf
  41. // This is a compile-time assertion to ensure that this generated file
  42. // is compatible with the proto package it is being compiled against.
  43. // A compilation error at this line likely means your copy of the
  44. // proto package needs to be updated.
  45. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  46. type LookupDirectoryEntryRequest struct {
  47. Directory string `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"`
  48. Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
  49. }
  50. func (m *LookupDirectoryEntryRequest) Reset() { *m = LookupDirectoryEntryRequest{} }
  51. func (m *LookupDirectoryEntryRequest) String() string { return proto.CompactTextString(m) }
  52. func (*LookupDirectoryEntryRequest) ProtoMessage() {}
  53. func (*LookupDirectoryEntryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  54. func (m *LookupDirectoryEntryRequest) GetDirectory() string {
  55. if m != nil {
  56. return m.Directory
  57. }
  58. return ""
  59. }
  60. func (m *LookupDirectoryEntryRequest) GetName() string {
  61. if m != nil {
  62. return m.Name
  63. }
  64. return ""
  65. }
  66. type LookupDirectoryEntryResponse struct {
  67. Entry *Entry `protobuf:"bytes,1,opt,name=entry" json:"entry,omitempty"`
  68. }
  69. func (m *LookupDirectoryEntryResponse) Reset() { *m = LookupDirectoryEntryResponse{} }
  70. func (m *LookupDirectoryEntryResponse) String() string { return proto.CompactTextString(m) }
  71. func (*LookupDirectoryEntryResponse) ProtoMessage() {}
  72. func (*LookupDirectoryEntryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  73. func (m *LookupDirectoryEntryResponse) GetEntry() *Entry {
  74. if m != nil {
  75. return m.Entry
  76. }
  77. return nil
  78. }
  79. type ListEntriesRequest struct {
  80. Directory string `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"`
  81. }
  82. func (m *ListEntriesRequest) Reset() { *m = ListEntriesRequest{} }
  83. func (m *ListEntriesRequest) String() string { return proto.CompactTextString(m) }
  84. func (*ListEntriesRequest) ProtoMessage() {}
  85. func (*ListEntriesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  86. func (m *ListEntriesRequest) GetDirectory() string {
  87. if m != nil {
  88. return m.Directory
  89. }
  90. return ""
  91. }
  92. type ListEntriesResponse struct {
  93. Entries []*Entry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"`
  94. }
  95. func (m *ListEntriesResponse) Reset() { *m = ListEntriesResponse{} }
  96. func (m *ListEntriesResponse) String() string { return proto.CompactTextString(m) }
  97. func (*ListEntriesResponse) ProtoMessage() {}
  98. func (*ListEntriesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  99. func (m *ListEntriesResponse) GetEntries() []*Entry {
  100. if m != nil {
  101. return m.Entries
  102. }
  103. return nil
  104. }
  105. type Entry struct {
  106. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  107. IsDirectory bool `protobuf:"varint,2,opt,name=is_directory,json=isDirectory" json:"is_directory,omitempty"`
  108. Chunks []*FileChunk `protobuf:"bytes,3,rep,name=chunks" json:"chunks,omitempty"`
  109. Attributes *FuseAttributes `protobuf:"bytes,4,opt,name=attributes" json:"attributes,omitempty"`
  110. }
  111. func (m *Entry) Reset() { *m = Entry{} }
  112. func (m *Entry) String() string { return proto.CompactTextString(m) }
  113. func (*Entry) ProtoMessage() {}
  114. func (*Entry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  115. func (m *Entry) GetName() string {
  116. if m != nil {
  117. return m.Name
  118. }
  119. return ""
  120. }
  121. func (m *Entry) GetIsDirectory() bool {
  122. if m != nil {
  123. return m.IsDirectory
  124. }
  125. return false
  126. }
  127. func (m *Entry) GetChunks() []*FileChunk {
  128. if m != nil {
  129. return m.Chunks
  130. }
  131. return nil
  132. }
  133. func (m *Entry) GetAttributes() *FuseAttributes {
  134. if m != nil {
  135. return m.Attributes
  136. }
  137. return nil
  138. }
  139. type FileChunk struct {
  140. FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId" json:"file_id,omitempty"`
  141. Offset int64 `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"`
  142. Size uint64 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"`
  143. Mtime int64 `protobuf:"varint,4,opt,name=mtime" json:"mtime,omitempty"`
  144. }
  145. func (m *FileChunk) Reset() { *m = FileChunk{} }
  146. func (m *FileChunk) String() string { return proto.CompactTextString(m) }
  147. func (*FileChunk) ProtoMessage() {}
  148. func (*FileChunk) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
  149. func (m *FileChunk) GetFileId() string {
  150. if m != nil {
  151. return m.FileId
  152. }
  153. return ""
  154. }
  155. func (m *FileChunk) GetOffset() int64 {
  156. if m != nil {
  157. return m.Offset
  158. }
  159. return 0
  160. }
  161. func (m *FileChunk) GetSize() uint64 {
  162. if m != nil {
  163. return m.Size
  164. }
  165. return 0
  166. }
  167. func (m *FileChunk) GetMtime() int64 {
  168. if m != nil {
  169. return m.Mtime
  170. }
  171. return 0
  172. }
  173. type FuseAttributes struct {
  174. FileSize uint64 `protobuf:"varint,1,opt,name=file_size,json=fileSize" json:"file_size,omitempty"`
  175. Mtime int64 `protobuf:"varint,2,opt,name=mtime" json:"mtime,omitempty"`
  176. FileMode uint32 `protobuf:"varint,3,opt,name=file_mode,json=fileMode" json:"file_mode,omitempty"`
  177. Uid uint32 `protobuf:"varint,4,opt,name=uid" json:"uid,omitempty"`
  178. Gid uint32 `protobuf:"varint,5,opt,name=gid" json:"gid,omitempty"`
  179. }
  180. func (m *FuseAttributes) Reset() { *m = FuseAttributes{} }
  181. func (m *FuseAttributes) String() string { return proto.CompactTextString(m) }
  182. func (*FuseAttributes) ProtoMessage() {}
  183. func (*FuseAttributes) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
  184. func (m *FuseAttributes) GetFileSize() uint64 {
  185. if m != nil {
  186. return m.FileSize
  187. }
  188. return 0
  189. }
  190. func (m *FuseAttributes) GetMtime() int64 {
  191. if m != nil {
  192. return m.Mtime
  193. }
  194. return 0
  195. }
  196. func (m *FuseAttributes) GetFileMode() uint32 {
  197. if m != nil {
  198. return m.FileMode
  199. }
  200. return 0
  201. }
  202. func (m *FuseAttributes) GetUid() uint32 {
  203. if m != nil {
  204. return m.Uid
  205. }
  206. return 0
  207. }
  208. func (m *FuseAttributes) GetGid() uint32 {
  209. if m != nil {
  210. return m.Gid
  211. }
  212. return 0
  213. }
  214. type GetEntryAttributesRequest struct {
  215. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  216. ParentDir string `protobuf:"bytes,2,opt,name=parent_dir,json=parentDir" json:"parent_dir,omitempty"`
  217. FileId string `protobuf:"bytes,3,opt,name=file_id,json=fileId" json:"file_id,omitempty"`
  218. }
  219. func (m *GetEntryAttributesRequest) Reset() { *m = GetEntryAttributesRequest{} }
  220. func (m *GetEntryAttributesRequest) String() string { return proto.CompactTextString(m) }
  221. func (*GetEntryAttributesRequest) ProtoMessage() {}
  222. func (*GetEntryAttributesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
  223. func (m *GetEntryAttributesRequest) GetName() string {
  224. if m != nil {
  225. return m.Name
  226. }
  227. return ""
  228. }
  229. func (m *GetEntryAttributesRequest) GetParentDir() string {
  230. if m != nil {
  231. return m.ParentDir
  232. }
  233. return ""
  234. }
  235. func (m *GetEntryAttributesRequest) GetFileId() string {
  236. if m != nil {
  237. return m.FileId
  238. }
  239. return ""
  240. }
  241. type GetEntryAttributesResponse struct {
  242. Attributes *FuseAttributes `protobuf:"bytes,1,opt,name=attributes" json:"attributes,omitempty"`
  243. Chunks []*FileChunk `protobuf:"bytes,2,rep,name=chunks" json:"chunks,omitempty"`
  244. }
  245. func (m *GetEntryAttributesResponse) Reset() { *m = GetEntryAttributesResponse{} }
  246. func (m *GetEntryAttributesResponse) String() string { return proto.CompactTextString(m) }
  247. func (*GetEntryAttributesResponse) ProtoMessage() {}
  248. func (*GetEntryAttributesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
  249. func (m *GetEntryAttributesResponse) GetAttributes() *FuseAttributes {
  250. if m != nil {
  251. return m.Attributes
  252. }
  253. return nil
  254. }
  255. func (m *GetEntryAttributesResponse) GetChunks() []*FileChunk {
  256. if m != nil {
  257. return m.Chunks
  258. }
  259. return nil
  260. }
  261. type GetFileContentRequest struct {
  262. FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId" json:"file_id,omitempty"`
  263. }
  264. func (m *GetFileContentRequest) Reset() { *m = GetFileContentRequest{} }
  265. func (m *GetFileContentRequest) String() string { return proto.CompactTextString(m) }
  266. func (*GetFileContentRequest) ProtoMessage() {}
  267. func (*GetFileContentRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
  268. func (m *GetFileContentRequest) GetFileId() string {
  269. if m != nil {
  270. return m.FileId
  271. }
  272. return ""
  273. }
  274. type GetFileContentResponse struct {
  275. Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
  276. }
  277. func (m *GetFileContentResponse) Reset() { *m = GetFileContentResponse{} }
  278. func (m *GetFileContentResponse) String() string { return proto.CompactTextString(m) }
  279. func (*GetFileContentResponse) ProtoMessage() {}
  280. func (*GetFileContentResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
  281. func (m *GetFileContentResponse) GetContent() []byte {
  282. if m != nil {
  283. return m.Content
  284. }
  285. return nil
  286. }
  287. type CreateEntryRequest struct {
  288. Directory string `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"`
  289. Entry *Entry `protobuf:"bytes,2,opt,name=entry" json:"entry,omitempty"`
  290. }
  291. func (m *CreateEntryRequest) Reset() { *m = CreateEntryRequest{} }
  292. func (m *CreateEntryRequest) String() string { return proto.CompactTextString(m) }
  293. func (*CreateEntryRequest) ProtoMessage() {}
  294. func (*CreateEntryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
  295. func (m *CreateEntryRequest) GetDirectory() string {
  296. if m != nil {
  297. return m.Directory
  298. }
  299. return ""
  300. }
  301. func (m *CreateEntryRequest) GetEntry() *Entry {
  302. if m != nil {
  303. return m.Entry
  304. }
  305. return nil
  306. }
  307. type CreateEntryResponse struct {
  308. }
  309. func (m *CreateEntryResponse) Reset() { *m = CreateEntryResponse{} }
  310. func (m *CreateEntryResponse) String() string { return proto.CompactTextString(m) }
  311. func (*CreateEntryResponse) ProtoMessage() {}
  312. func (*CreateEntryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
  313. type DeleteEntryRequest struct {
  314. Directory string `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"`
  315. Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
  316. IsDirectory bool `protobuf:"varint,3,opt,name=is_directory,json=isDirectory" json:"is_directory,omitempty"`
  317. }
  318. func (m *DeleteEntryRequest) Reset() { *m = DeleteEntryRequest{} }
  319. func (m *DeleteEntryRequest) String() string { return proto.CompactTextString(m) }
  320. func (*DeleteEntryRequest) ProtoMessage() {}
  321. func (*DeleteEntryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
  322. func (m *DeleteEntryRequest) GetDirectory() string {
  323. if m != nil {
  324. return m.Directory
  325. }
  326. return ""
  327. }
  328. func (m *DeleteEntryRequest) GetName() string {
  329. if m != nil {
  330. return m.Name
  331. }
  332. return ""
  333. }
  334. func (m *DeleteEntryRequest) GetIsDirectory() bool {
  335. if m != nil {
  336. return m.IsDirectory
  337. }
  338. return false
  339. }
  340. type DeleteEntryResponse struct {
  341. }
  342. func (m *DeleteEntryResponse) Reset() { *m = DeleteEntryResponse{} }
  343. func (m *DeleteEntryResponse) String() string { return proto.CompactTextString(m) }
  344. func (*DeleteEntryResponse) ProtoMessage() {}
  345. func (*DeleteEntryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
  346. type AssignVolumeRequest struct {
  347. Count int32 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
  348. Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"`
  349. Replication string `protobuf:"bytes,3,opt,name=replication" json:"replication,omitempty"`
  350. }
  351. func (m *AssignVolumeRequest) Reset() { *m = AssignVolumeRequest{} }
  352. func (m *AssignVolumeRequest) String() string { return proto.CompactTextString(m) }
  353. func (*AssignVolumeRequest) ProtoMessage() {}
  354. func (*AssignVolumeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
  355. func (m *AssignVolumeRequest) GetCount() int32 {
  356. if m != nil {
  357. return m.Count
  358. }
  359. return 0
  360. }
  361. func (m *AssignVolumeRequest) GetCollection() string {
  362. if m != nil {
  363. return m.Collection
  364. }
  365. return ""
  366. }
  367. func (m *AssignVolumeRequest) GetReplication() string {
  368. if m != nil {
  369. return m.Replication
  370. }
  371. return ""
  372. }
  373. type AssignVolumeResponse struct {
  374. FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId" json:"file_id,omitempty"`
  375. Url string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"`
  376. PublicUrl string `protobuf:"bytes,3,opt,name=public_url,json=publicUrl" json:"public_url,omitempty"`
  377. Count int32 `protobuf:"varint,4,opt,name=count" json:"count,omitempty"`
  378. }
  379. func (m *AssignVolumeResponse) Reset() { *m = AssignVolumeResponse{} }
  380. func (m *AssignVolumeResponse) String() string { return proto.CompactTextString(m) }
  381. func (*AssignVolumeResponse) ProtoMessage() {}
  382. func (*AssignVolumeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
  383. func (m *AssignVolumeResponse) GetFileId() string {
  384. if m != nil {
  385. return m.FileId
  386. }
  387. return ""
  388. }
  389. func (m *AssignVolumeResponse) GetUrl() string {
  390. if m != nil {
  391. return m.Url
  392. }
  393. return ""
  394. }
  395. func (m *AssignVolumeResponse) GetPublicUrl() string {
  396. if m != nil {
  397. return m.PublicUrl
  398. }
  399. return ""
  400. }
  401. func (m *AssignVolumeResponse) GetCount() int32 {
  402. if m != nil {
  403. return m.Count
  404. }
  405. return 0
  406. }
  407. type UpdateEntryRequest struct {
  408. Directory string `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"`
  409. Entry *Entry `protobuf:"bytes,2,opt,name=entry" json:"entry,omitempty"`
  410. }
  411. func (m *UpdateEntryRequest) Reset() { *m = UpdateEntryRequest{} }
  412. func (m *UpdateEntryRequest) String() string { return proto.CompactTextString(m) }
  413. func (*UpdateEntryRequest) ProtoMessage() {}
  414. func (*UpdateEntryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
  415. func (m *UpdateEntryRequest) GetDirectory() string {
  416. if m != nil {
  417. return m.Directory
  418. }
  419. return ""
  420. }
  421. func (m *UpdateEntryRequest) GetEntry() *Entry {
  422. if m != nil {
  423. return m.Entry
  424. }
  425. return nil
  426. }
  427. type UpdateEntryResponse struct {
  428. }
  429. func (m *UpdateEntryResponse) Reset() { *m = UpdateEntryResponse{} }
  430. func (m *UpdateEntryResponse) String() string { return proto.CompactTextString(m) }
  431. func (*UpdateEntryResponse) ProtoMessage() {}
  432. func (*UpdateEntryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
  433. func init() {
  434. proto.RegisterType((*LookupDirectoryEntryRequest)(nil), "filer_pb.LookupDirectoryEntryRequest")
  435. proto.RegisterType((*LookupDirectoryEntryResponse)(nil), "filer_pb.LookupDirectoryEntryResponse")
  436. proto.RegisterType((*ListEntriesRequest)(nil), "filer_pb.ListEntriesRequest")
  437. proto.RegisterType((*ListEntriesResponse)(nil), "filer_pb.ListEntriesResponse")
  438. proto.RegisterType((*Entry)(nil), "filer_pb.Entry")
  439. proto.RegisterType((*FileChunk)(nil), "filer_pb.FileChunk")
  440. proto.RegisterType((*FuseAttributes)(nil), "filer_pb.FuseAttributes")
  441. proto.RegisterType((*GetEntryAttributesRequest)(nil), "filer_pb.GetEntryAttributesRequest")
  442. proto.RegisterType((*GetEntryAttributesResponse)(nil), "filer_pb.GetEntryAttributesResponse")
  443. proto.RegisterType((*GetFileContentRequest)(nil), "filer_pb.GetFileContentRequest")
  444. proto.RegisterType((*GetFileContentResponse)(nil), "filer_pb.GetFileContentResponse")
  445. proto.RegisterType((*CreateEntryRequest)(nil), "filer_pb.CreateEntryRequest")
  446. proto.RegisterType((*CreateEntryResponse)(nil), "filer_pb.CreateEntryResponse")
  447. proto.RegisterType((*DeleteEntryRequest)(nil), "filer_pb.DeleteEntryRequest")
  448. proto.RegisterType((*DeleteEntryResponse)(nil), "filer_pb.DeleteEntryResponse")
  449. proto.RegisterType((*AssignVolumeRequest)(nil), "filer_pb.AssignVolumeRequest")
  450. proto.RegisterType((*AssignVolumeResponse)(nil), "filer_pb.AssignVolumeResponse")
  451. proto.RegisterType((*UpdateEntryRequest)(nil), "filer_pb.UpdateEntryRequest")
  452. proto.RegisterType((*UpdateEntryResponse)(nil), "filer_pb.UpdateEntryResponse")
  453. }
  454. // Reference imports to suppress errors if they are not otherwise used.
  455. var _ context.Context
  456. var _ grpc.ClientConn
  457. // This is a compile-time assertion to ensure that this generated file
  458. // is compatible with the grpc package it is being compiled against.
  459. const _ = grpc.SupportPackageIsVersion4
  460. // Client API for SeaweedFiler service
  461. type SeaweedFilerClient interface {
  462. LookupDirectoryEntry(ctx context.Context, in *LookupDirectoryEntryRequest, opts ...grpc.CallOption) (*LookupDirectoryEntryResponse, error)
  463. ListEntries(ctx context.Context, in *ListEntriesRequest, opts ...grpc.CallOption) (*ListEntriesResponse, error)
  464. GetEntryAttributes(ctx context.Context, in *GetEntryAttributesRequest, opts ...grpc.CallOption) (*GetEntryAttributesResponse, error)
  465. GetFileContent(ctx context.Context, in *GetFileContentRequest, opts ...grpc.CallOption) (*GetFileContentResponse, error)
  466. CreateEntry(ctx context.Context, in *CreateEntryRequest, opts ...grpc.CallOption) (*CreateEntryResponse, error)
  467. UpdateEntry(ctx context.Context, in *UpdateEntryRequest, opts ...grpc.CallOption) (*UpdateEntryResponse, error)
  468. DeleteEntry(ctx context.Context, in *DeleteEntryRequest, opts ...grpc.CallOption) (*DeleteEntryResponse, error)
  469. AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error)
  470. }
  471. type seaweedFilerClient struct {
  472. cc *grpc.ClientConn
  473. }
  474. func NewSeaweedFilerClient(cc *grpc.ClientConn) SeaweedFilerClient {
  475. return &seaweedFilerClient{cc}
  476. }
  477. func (c *seaweedFilerClient) LookupDirectoryEntry(ctx context.Context, in *LookupDirectoryEntryRequest, opts ...grpc.CallOption) (*LookupDirectoryEntryResponse, error) {
  478. out := new(LookupDirectoryEntryResponse)
  479. err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/LookupDirectoryEntry", in, out, c.cc, opts...)
  480. if err != nil {
  481. return nil, err
  482. }
  483. return out, nil
  484. }
  485. func (c *seaweedFilerClient) ListEntries(ctx context.Context, in *ListEntriesRequest, opts ...grpc.CallOption) (*ListEntriesResponse, error) {
  486. out := new(ListEntriesResponse)
  487. err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/ListEntries", in, out, c.cc, opts...)
  488. if err != nil {
  489. return nil, err
  490. }
  491. return out, nil
  492. }
  493. func (c *seaweedFilerClient) GetEntryAttributes(ctx context.Context, in *GetEntryAttributesRequest, opts ...grpc.CallOption) (*GetEntryAttributesResponse, error) {
  494. out := new(GetEntryAttributesResponse)
  495. err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/GetEntryAttributes", in, out, c.cc, opts...)
  496. if err != nil {
  497. return nil, err
  498. }
  499. return out, nil
  500. }
  501. func (c *seaweedFilerClient) GetFileContent(ctx context.Context, in *GetFileContentRequest, opts ...grpc.CallOption) (*GetFileContentResponse, error) {
  502. out := new(GetFileContentResponse)
  503. err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/GetFileContent", in, out, c.cc, opts...)
  504. if err != nil {
  505. return nil, err
  506. }
  507. return out, nil
  508. }
  509. func (c *seaweedFilerClient) CreateEntry(ctx context.Context, in *CreateEntryRequest, opts ...grpc.CallOption) (*CreateEntryResponse, error) {
  510. out := new(CreateEntryResponse)
  511. err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/CreateEntry", in, out, c.cc, opts...)
  512. if err != nil {
  513. return nil, err
  514. }
  515. return out, nil
  516. }
  517. func (c *seaweedFilerClient) UpdateEntry(ctx context.Context, in *UpdateEntryRequest, opts ...grpc.CallOption) (*UpdateEntryResponse, error) {
  518. out := new(UpdateEntryResponse)
  519. err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/UpdateEntry", in, out, c.cc, opts...)
  520. if err != nil {
  521. return nil, err
  522. }
  523. return out, nil
  524. }
  525. func (c *seaweedFilerClient) DeleteEntry(ctx context.Context, in *DeleteEntryRequest, opts ...grpc.CallOption) (*DeleteEntryResponse, error) {
  526. out := new(DeleteEntryResponse)
  527. err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/DeleteEntry", in, out, c.cc, opts...)
  528. if err != nil {
  529. return nil, err
  530. }
  531. return out, nil
  532. }
  533. func (c *seaweedFilerClient) AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error) {
  534. out := new(AssignVolumeResponse)
  535. err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/AssignVolume", in, out, c.cc, opts...)
  536. if err != nil {
  537. return nil, err
  538. }
  539. return out, nil
  540. }
  541. // Server API for SeaweedFiler service
  542. type SeaweedFilerServer interface {
  543. LookupDirectoryEntry(context.Context, *LookupDirectoryEntryRequest) (*LookupDirectoryEntryResponse, error)
  544. ListEntries(context.Context, *ListEntriesRequest) (*ListEntriesResponse, error)
  545. GetEntryAttributes(context.Context, *GetEntryAttributesRequest) (*GetEntryAttributesResponse, error)
  546. GetFileContent(context.Context, *GetFileContentRequest) (*GetFileContentResponse, error)
  547. CreateEntry(context.Context, *CreateEntryRequest) (*CreateEntryResponse, error)
  548. UpdateEntry(context.Context, *UpdateEntryRequest) (*UpdateEntryResponse, error)
  549. DeleteEntry(context.Context, *DeleteEntryRequest) (*DeleteEntryResponse, error)
  550. AssignVolume(context.Context, *AssignVolumeRequest) (*AssignVolumeResponse, error)
  551. }
  552. func RegisterSeaweedFilerServer(s *grpc.Server, srv SeaweedFilerServer) {
  553. s.RegisterService(&_SeaweedFiler_serviceDesc, srv)
  554. }
  555. func _SeaweedFiler_LookupDirectoryEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  556. in := new(LookupDirectoryEntryRequest)
  557. if err := dec(in); err != nil {
  558. return nil, err
  559. }
  560. if interceptor == nil {
  561. return srv.(SeaweedFilerServer).LookupDirectoryEntry(ctx, in)
  562. }
  563. info := &grpc.UnaryServerInfo{
  564. Server: srv,
  565. FullMethod: "/filer_pb.SeaweedFiler/LookupDirectoryEntry",
  566. }
  567. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  568. return srv.(SeaweedFilerServer).LookupDirectoryEntry(ctx, req.(*LookupDirectoryEntryRequest))
  569. }
  570. return interceptor(ctx, in, info, handler)
  571. }
  572. func _SeaweedFiler_ListEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  573. in := new(ListEntriesRequest)
  574. if err := dec(in); err != nil {
  575. return nil, err
  576. }
  577. if interceptor == nil {
  578. return srv.(SeaweedFilerServer).ListEntries(ctx, in)
  579. }
  580. info := &grpc.UnaryServerInfo{
  581. Server: srv,
  582. FullMethod: "/filer_pb.SeaweedFiler/ListEntries",
  583. }
  584. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  585. return srv.(SeaweedFilerServer).ListEntries(ctx, req.(*ListEntriesRequest))
  586. }
  587. return interceptor(ctx, in, info, handler)
  588. }
  589. func _SeaweedFiler_GetEntryAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  590. in := new(GetEntryAttributesRequest)
  591. if err := dec(in); err != nil {
  592. return nil, err
  593. }
  594. if interceptor == nil {
  595. return srv.(SeaweedFilerServer).GetEntryAttributes(ctx, in)
  596. }
  597. info := &grpc.UnaryServerInfo{
  598. Server: srv,
  599. FullMethod: "/filer_pb.SeaweedFiler/GetEntryAttributes",
  600. }
  601. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  602. return srv.(SeaweedFilerServer).GetEntryAttributes(ctx, req.(*GetEntryAttributesRequest))
  603. }
  604. return interceptor(ctx, in, info, handler)
  605. }
  606. func _SeaweedFiler_GetFileContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  607. in := new(GetFileContentRequest)
  608. if err := dec(in); err != nil {
  609. return nil, err
  610. }
  611. if interceptor == nil {
  612. return srv.(SeaweedFilerServer).GetFileContent(ctx, in)
  613. }
  614. info := &grpc.UnaryServerInfo{
  615. Server: srv,
  616. FullMethod: "/filer_pb.SeaweedFiler/GetFileContent",
  617. }
  618. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  619. return srv.(SeaweedFilerServer).GetFileContent(ctx, req.(*GetFileContentRequest))
  620. }
  621. return interceptor(ctx, in, info, handler)
  622. }
  623. func _SeaweedFiler_CreateEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  624. in := new(CreateEntryRequest)
  625. if err := dec(in); err != nil {
  626. return nil, err
  627. }
  628. if interceptor == nil {
  629. return srv.(SeaweedFilerServer).CreateEntry(ctx, in)
  630. }
  631. info := &grpc.UnaryServerInfo{
  632. Server: srv,
  633. FullMethod: "/filer_pb.SeaweedFiler/CreateEntry",
  634. }
  635. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  636. return srv.(SeaweedFilerServer).CreateEntry(ctx, req.(*CreateEntryRequest))
  637. }
  638. return interceptor(ctx, in, info, handler)
  639. }
  640. func _SeaweedFiler_UpdateEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  641. in := new(UpdateEntryRequest)
  642. if err := dec(in); err != nil {
  643. return nil, err
  644. }
  645. if interceptor == nil {
  646. return srv.(SeaweedFilerServer).UpdateEntry(ctx, in)
  647. }
  648. info := &grpc.UnaryServerInfo{
  649. Server: srv,
  650. FullMethod: "/filer_pb.SeaweedFiler/UpdateEntry",
  651. }
  652. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  653. return srv.(SeaweedFilerServer).UpdateEntry(ctx, req.(*UpdateEntryRequest))
  654. }
  655. return interceptor(ctx, in, info, handler)
  656. }
  657. func _SeaweedFiler_DeleteEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  658. in := new(DeleteEntryRequest)
  659. if err := dec(in); err != nil {
  660. return nil, err
  661. }
  662. if interceptor == nil {
  663. return srv.(SeaweedFilerServer).DeleteEntry(ctx, in)
  664. }
  665. info := &grpc.UnaryServerInfo{
  666. Server: srv,
  667. FullMethod: "/filer_pb.SeaweedFiler/DeleteEntry",
  668. }
  669. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  670. return srv.(SeaweedFilerServer).DeleteEntry(ctx, req.(*DeleteEntryRequest))
  671. }
  672. return interceptor(ctx, in, info, handler)
  673. }
  674. func _SeaweedFiler_AssignVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  675. in := new(AssignVolumeRequest)
  676. if err := dec(in); err != nil {
  677. return nil, err
  678. }
  679. if interceptor == nil {
  680. return srv.(SeaweedFilerServer).AssignVolume(ctx, in)
  681. }
  682. info := &grpc.UnaryServerInfo{
  683. Server: srv,
  684. FullMethod: "/filer_pb.SeaweedFiler/AssignVolume",
  685. }
  686. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  687. return srv.(SeaweedFilerServer).AssignVolume(ctx, req.(*AssignVolumeRequest))
  688. }
  689. return interceptor(ctx, in, info, handler)
  690. }
  691. var _SeaweedFiler_serviceDesc = grpc.ServiceDesc{
  692. ServiceName: "filer_pb.SeaweedFiler",
  693. HandlerType: (*SeaweedFilerServer)(nil),
  694. Methods: []grpc.MethodDesc{
  695. {
  696. MethodName: "LookupDirectoryEntry",
  697. Handler: _SeaweedFiler_LookupDirectoryEntry_Handler,
  698. },
  699. {
  700. MethodName: "ListEntries",
  701. Handler: _SeaweedFiler_ListEntries_Handler,
  702. },
  703. {
  704. MethodName: "GetEntryAttributes",
  705. Handler: _SeaweedFiler_GetEntryAttributes_Handler,
  706. },
  707. {
  708. MethodName: "GetFileContent",
  709. Handler: _SeaweedFiler_GetFileContent_Handler,
  710. },
  711. {
  712. MethodName: "CreateEntry",
  713. Handler: _SeaweedFiler_CreateEntry_Handler,
  714. },
  715. {
  716. MethodName: "UpdateEntry",
  717. Handler: _SeaweedFiler_UpdateEntry_Handler,
  718. },
  719. {
  720. MethodName: "DeleteEntry",
  721. Handler: _SeaweedFiler_DeleteEntry_Handler,
  722. },
  723. {
  724. MethodName: "AssignVolume",
  725. Handler: _SeaweedFiler_AssignVolume_Handler,
  726. },
  727. },
  728. Streams: []grpc.StreamDesc{},
  729. Metadata: "filer.proto",
  730. }
  731. func init() { proto.RegisterFile("filer.proto", fileDescriptor0) }
  732. var fileDescriptor0 = []byte{
  733. // 763 bytes of a gzipped FileDescriptorProto
  734. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x56, 0xdd, 0x6e, 0xd3, 0x4a,
  735. 0x10, 0xae, 0xe3, 0x24, 0x6d, 0x26, 0x69, 0xcf, 0xd1, 0x26, 0xed, 0xf1, 0x49, 0x7f, 0x08, 0x86,
  736. 0xa2, 0x22, 0xa4, 0x0a, 0x85, 0x1b, 0x2e, 0xa9, 0xda, 0x52, 0x21, 0x15, 0x55, 0x72, 0x55, 0x24,
  737. 0xae, 0xa2, 0xc4, 0x9e, 0x84, 0x55, 0x1d, 0x3b, 0x78, 0xd7, 0xa0, 0x72, 0x0b, 0xaf, 0xc2, 0x4b,
  738. 0xf0, 0x74, 0x68, 0x7f, 0xe2, 0xac, 0xb1, 0xd3, 0x9f, 0x0b, 0xee, 0x76, 0x67, 0x76, 0xbe, 0xf9,
  739. 0x76, 0x66, 0xbe, 0xb5, 0xa1, 0x39, 0xa6, 0x21, 0x26, 0x87, 0xb3, 0x24, 0xe6, 0x31, 0x59, 0x93,
  740. 0x9b, 0xc1, 0x6c, 0xe4, 0x5e, 0xc0, 0xf6, 0x79, 0x1c, 0x5f, 0xa7, 0xb3, 0x13, 0x9a, 0xa0, 0xcf,
  741. 0xe3, 0xe4, 0xe6, 0x34, 0xe2, 0xc9, 0x8d, 0x87, 0x9f, 0x53, 0x64, 0x9c, 0xec, 0x40, 0x23, 0x98,
  742. 0x3b, 0x1c, 0xab, 0x67, 0x1d, 0x34, 0xbc, 0x85, 0x81, 0x10, 0xa8, 0x46, 0xc3, 0x29, 0x3a, 0x15,
  743. 0xe9, 0x90, 0x6b, 0xf7, 0x14, 0x76, 0xca, 0x01, 0xd9, 0x2c, 0x8e, 0x18, 0x92, 0x7d, 0xa8, 0xa1,
  744. 0x30, 0x48, 0xb4, 0x66, 0xff, 0x9f, 0xc3, 0x39, 0x95, 0x43, 0x75, 0x4e, 0x79, 0xdd, 0x3e, 0x90,
  745. 0x73, 0xca, 0xb8, 0xb0, 0x51, 0x64, 0xf7, 0xa2, 0xe3, 0xbe, 0x81, 0x76, 0x2e, 0x46, 0x67, 0x7c,
  746. 0x0e, 0xab, 0xa8, 0x4c, 0x8e, 0xd5, 0xb3, 0xcb, 0x72, 0xce, 0xfd, 0xee, 0x4f, 0x0b, 0x6a, 0xd2,
  747. 0x94, 0x5d, 0xcd, 0x5a, 0x5c, 0x8d, 0x3c, 0x86, 0x16, 0x65, 0x83, 0x05, 0x01, 0x71, 0xed, 0x35,
  748. 0xaf, 0x49, 0x59, 0x76, 0x55, 0xf2, 0x02, 0xea, 0xfe, 0xa7, 0x34, 0xba, 0x66, 0x8e, 0x2d, 0x53,
  749. 0xb5, 0x17, 0xa9, 0xde, 0xd2, 0x10, 0x8f, 0x85, 0xcf, 0xd3, 0x47, 0xc8, 0x6b, 0x80, 0x21, 0xe7,
  750. 0x09, 0x1d, 0xa5, 0x1c, 0x99, 0x53, 0x95, 0xf5, 0x70, 0x8c, 0x80, 0x94, 0xe1, 0x51, 0xe6, 0xf7,
  751. 0x8c, 0xb3, 0xee, 0x18, 0x1a, 0x19, 0x1c, 0xf9, 0x0f, 0x56, 0x45, 0xcc, 0x80, 0x06, 0x9a, 0x6d,
  752. 0x5d, 0x6c, 0xdf, 0x05, 0x64, 0x0b, 0xea, 0xf1, 0x78, 0xcc, 0x90, 0x4b, 0xa6, 0xb6, 0xa7, 0x77,
  753. 0xe2, 0x6e, 0x8c, 0x7e, 0x43, 0xc7, 0xee, 0x59, 0x07, 0x55, 0x4f, 0xae, 0x49, 0x07, 0x6a, 0x53,
  754. 0x4e, 0xa7, 0x28, 0x69, 0xd8, 0x9e, 0xda, 0xb8, 0x3f, 0x2c, 0xd8, 0xc8, 0xd3, 0x20, 0xdb, 0xd0,
  755. 0x90, 0xd9, 0x24, 0x82, 0x25, 0x11, 0xe4, 0x34, 0x5d, 0xe6, 0x50, 0x2a, 0x06, 0x4a, 0x16, 0x32,
  756. 0x8d, 0x03, 0x95, 0x74, 0x5d, 0x85, 0xbc, 0x8f, 0x03, 0x24, 0xff, 0x82, 0x9d, 0xd2, 0x40, 0xa6,
  757. 0x5d, 0xf7, 0xc4, 0x52, 0x58, 0x26, 0x34, 0x70, 0x6a, 0xca, 0x32, 0xa1, 0x81, 0x3b, 0x81, 0xff,
  758. 0xcf, 0x50, 0xf6, 0xf5, 0xc6, 0x28, 0x88, 0x9e, 0x89, 0xb2, 0x4e, 0xed, 0x02, 0xcc, 0x86, 0x09,
  759. 0x46, 0x5c, 0x74, 0x4b, 0x8f, 0x67, 0x43, 0x59, 0x4e, 0x68, 0x62, 0x56, 0xcc, 0x36, 0x2b, 0xe6,
  760. 0x7e, 0xb7, 0xa0, 0x5b, 0x96, 0x49, 0x4f, 0x52, 0xbe, 0x61, 0xd6, 0xfd, 0x1b, 0x66, 0xcc, 0x45,
  761. 0xe5, 0xce, 0xb9, 0x70, 0x5f, 0xc2, 0xe6, 0x19, 0x72, 0x69, 0x8f, 0x23, 0x8e, 0x11, 0x9f, 0x5f,
  762. 0x75, 0x59, 0xa7, 0xdd, 0x3e, 0x6c, 0xfd, 0x19, 0xa1, 0x29, 0x3b, 0xb0, 0xea, 0x2b, 0x93, 0x0c,
  763. 0x69, 0x79, 0xf3, 0xad, 0xfb, 0x11, 0xc8, 0x71, 0x82, 0x43, 0x8e, 0x0f, 0x10, 0x7c, 0x26, 0xde,
  764. 0xca, 0xad, 0xe2, 0xdd, 0x84, 0x76, 0x0e, 0x5a, 0x71, 0x71, 0x29, 0x90, 0x13, 0x0c, 0xf1, 0x41,
  765. 0x19, 0x4b, 0x9e, 0x98, 0x82, 0x0e, 0xed, 0x82, 0x0e, 0x05, 0x83, 0x5c, 0x2a, 0xcd, 0x60, 0x0a,
  766. 0xed, 0x23, 0xc6, 0xe8, 0x24, 0xfa, 0x10, 0x87, 0xe9, 0x14, 0xe7, 0x14, 0x3a, 0x50, 0xf3, 0xe3,
  767. 0x54, 0x97, 0xa8, 0xe6, 0xa9, 0x0d, 0xd9, 0x03, 0xf0, 0xe3, 0x30, 0x44, 0x9f, 0xd3, 0x38, 0xd2,
  768. 0x04, 0x0c, 0x0b, 0xe9, 0x41, 0x33, 0xc1, 0x59, 0x48, 0xfd, 0xa1, 0x3c, 0xa0, 0x26, 0xc9, 0x34,
  769. 0xb9, 0x5f, 0xa0, 0x93, 0x4f, 0xa7, 0x9b, 0xb2, 0x54, 0xb1, 0x42, 0x0c, 0x49, 0xa8, 0x73, 0x89,
  770. 0xa5, 0x9c, 0xe4, 0x74, 0x14, 0x52, 0x7f, 0x20, 0x1c, 0xb6, 0x9e, 0x64, 0x69, 0xb9, 0x4a, 0xc2,
  771. 0x05, 0xf3, 0xaa, 0xc1, 0x5c, 0xb4, 0xf6, 0x6a, 0x16, 0xfc, 0xad, 0xd6, 0xe6, 0xa0, 0xd5, 0x8d,
  772. 0xfa, 0xbf, 0x6a, 0xd0, 0xba, 0xc4, 0xe1, 0x57, 0xc4, 0x40, 0x4c, 0x61, 0x42, 0x26, 0xd0, 0x29,
  773. 0xfb, 0x0c, 0x90, 0xfd, 0x05, 0xee, 0x2d, 0xdf, 0x9d, 0xee, 0xb3, 0xbb, 0x8e, 0xe9, 0x86, 0xae,
  774. 0x90, 0x73, 0x68, 0x1a, 0x8f, 0x3e, 0xd9, 0x31, 0x02, 0x0b, 0xdf, 0x8f, 0xee, 0xee, 0x12, 0x6f,
  775. 0x86, 0x36, 0x04, 0x52, 0xd4, 0x3f, 0x79, 0xb2, 0x08, 0x5b, 0xfa, 0x0e, 0x75, 0x9f, 0xde, 0x7e,
  776. 0x28, 0x4b, 0x71, 0x05, 0x1b, 0x79, 0xad, 0x92, 0x47, 0xb9, 0xc8, 0xa2, 0xee, 0xbb, 0xbd, 0xe5,
  777. 0x07, 0xcc, 0x3a, 0x18, 0x9a, 0x33, 0xeb, 0x50, 0x54, 0xb9, 0x59, 0x87, 0x32, 0xa1, 0x4a, 0x34,
  778. 0xa3, 0xcd, 0x26, 0x5a, 0x71, 0xb0, 0x4c, 0xb4, 0x92, 0xd9, 0x50, 0x68, 0x86, 0x1a, 0x4d, 0xb4,
  779. 0xe2, 0x7b, 0x60, 0xa2, 0x95, 0x49, 0x78, 0x85, 0x5c, 0x40, 0xcb, 0x54, 0x15, 0x31, 0x02, 0x4a,
  780. 0xc4, 0xdd, 0xdd, 0x5b, 0xe6, 0x9e, 0x03, 0x8e, 0xea, 0xf2, 0xa7, 0xe8, 0xd5, 0xef, 0x00, 0x00,
  781. 0x00, 0xff, 0xff, 0xec, 0x38, 0x88, 0xb2, 0x23, 0x09, 0x00, 0x00,
  782. }