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.

887 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. GetFileAttributesRequest
  17. GetFileAttributesResponse
  18. GetFileContentRequest
  19. GetFileContentResponse
  20. CreateEntryRequest
  21. CreateEntryResponse
  22. DeleteEntryRequest
  23. DeleteEntryResponse
  24. AssignVolumeRequest
  25. AssignVolumeResponse
  26. AppendFileChunksRequest
  27. AppendFileChunksResponse
  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 GetFileAttributesRequest 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 *GetFileAttributesRequest) Reset() { *m = GetFileAttributesRequest{} }
  220. func (m *GetFileAttributesRequest) String() string { return proto.CompactTextString(m) }
  221. func (*GetFileAttributesRequest) ProtoMessage() {}
  222. func (*GetFileAttributesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
  223. func (m *GetFileAttributesRequest) GetName() string {
  224. if m != nil {
  225. return m.Name
  226. }
  227. return ""
  228. }
  229. func (m *GetFileAttributesRequest) GetParentDir() string {
  230. if m != nil {
  231. return m.ParentDir
  232. }
  233. return ""
  234. }
  235. func (m *GetFileAttributesRequest) GetFileId() string {
  236. if m != nil {
  237. return m.FileId
  238. }
  239. return ""
  240. }
  241. type GetFileAttributesResponse struct {
  242. Attributes *FuseAttributes `protobuf:"bytes,1,opt,name=attributes" json:"attributes,omitempty"`
  243. }
  244. func (m *GetFileAttributesResponse) Reset() { *m = GetFileAttributesResponse{} }
  245. func (m *GetFileAttributesResponse) String() string { return proto.CompactTextString(m) }
  246. func (*GetFileAttributesResponse) ProtoMessage() {}
  247. func (*GetFileAttributesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
  248. func (m *GetFileAttributesResponse) GetAttributes() *FuseAttributes {
  249. if m != nil {
  250. return m.Attributes
  251. }
  252. return nil
  253. }
  254. type GetFileContentRequest struct {
  255. FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId" json:"file_id,omitempty"`
  256. }
  257. func (m *GetFileContentRequest) Reset() { *m = GetFileContentRequest{} }
  258. func (m *GetFileContentRequest) String() string { return proto.CompactTextString(m) }
  259. func (*GetFileContentRequest) ProtoMessage() {}
  260. func (*GetFileContentRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
  261. func (m *GetFileContentRequest) GetFileId() string {
  262. if m != nil {
  263. return m.FileId
  264. }
  265. return ""
  266. }
  267. type GetFileContentResponse struct {
  268. Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
  269. }
  270. func (m *GetFileContentResponse) Reset() { *m = GetFileContentResponse{} }
  271. func (m *GetFileContentResponse) String() string { return proto.CompactTextString(m) }
  272. func (*GetFileContentResponse) ProtoMessage() {}
  273. func (*GetFileContentResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
  274. func (m *GetFileContentResponse) GetContent() []byte {
  275. if m != nil {
  276. return m.Content
  277. }
  278. return nil
  279. }
  280. type CreateEntryRequest struct {
  281. Directory string `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"`
  282. Entry *Entry `protobuf:"bytes,2,opt,name=entry" json:"entry,omitempty"`
  283. }
  284. func (m *CreateEntryRequest) Reset() { *m = CreateEntryRequest{} }
  285. func (m *CreateEntryRequest) String() string { return proto.CompactTextString(m) }
  286. func (*CreateEntryRequest) ProtoMessage() {}
  287. func (*CreateEntryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
  288. func (m *CreateEntryRequest) GetDirectory() string {
  289. if m != nil {
  290. return m.Directory
  291. }
  292. return ""
  293. }
  294. func (m *CreateEntryRequest) GetEntry() *Entry {
  295. if m != nil {
  296. return m.Entry
  297. }
  298. return nil
  299. }
  300. type CreateEntryResponse struct {
  301. }
  302. func (m *CreateEntryResponse) Reset() { *m = CreateEntryResponse{} }
  303. func (m *CreateEntryResponse) String() string { return proto.CompactTextString(m) }
  304. func (*CreateEntryResponse) ProtoMessage() {}
  305. func (*CreateEntryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
  306. type DeleteEntryRequest struct {
  307. Directory string `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"`
  308. Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
  309. IsDirectory bool `protobuf:"varint,3,opt,name=is_directory,json=isDirectory" json:"is_directory,omitempty"`
  310. }
  311. func (m *DeleteEntryRequest) Reset() { *m = DeleteEntryRequest{} }
  312. func (m *DeleteEntryRequest) String() string { return proto.CompactTextString(m) }
  313. func (*DeleteEntryRequest) ProtoMessage() {}
  314. func (*DeleteEntryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
  315. func (m *DeleteEntryRequest) GetDirectory() string {
  316. if m != nil {
  317. return m.Directory
  318. }
  319. return ""
  320. }
  321. func (m *DeleteEntryRequest) GetName() string {
  322. if m != nil {
  323. return m.Name
  324. }
  325. return ""
  326. }
  327. func (m *DeleteEntryRequest) GetIsDirectory() bool {
  328. if m != nil {
  329. return m.IsDirectory
  330. }
  331. return false
  332. }
  333. type DeleteEntryResponse struct {
  334. }
  335. func (m *DeleteEntryResponse) Reset() { *m = DeleteEntryResponse{} }
  336. func (m *DeleteEntryResponse) String() string { return proto.CompactTextString(m) }
  337. func (*DeleteEntryResponse) ProtoMessage() {}
  338. func (*DeleteEntryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
  339. type AssignVolumeRequest struct {
  340. Count int32 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
  341. Collection string `protobuf:"bytes,2,opt,name=collection" json:"collection,omitempty"`
  342. Replication string `protobuf:"bytes,3,opt,name=replication" json:"replication,omitempty"`
  343. }
  344. func (m *AssignVolumeRequest) Reset() { *m = AssignVolumeRequest{} }
  345. func (m *AssignVolumeRequest) String() string { return proto.CompactTextString(m) }
  346. func (*AssignVolumeRequest) ProtoMessage() {}
  347. func (*AssignVolumeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
  348. func (m *AssignVolumeRequest) GetCount() int32 {
  349. if m != nil {
  350. return m.Count
  351. }
  352. return 0
  353. }
  354. func (m *AssignVolumeRequest) GetCollection() string {
  355. if m != nil {
  356. return m.Collection
  357. }
  358. return ""
  359. }
  360. func (m *AssignVolumeRequest) GetReplication() string {
  361. if m != nil {
  362. return m.Replication
  363. }
  364. return ""
  365. }
  366. type AssignVolumeResponse struct {
  367. FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId" json:"file_id,omitempty"`
  368. Url string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"`
  369. PublicUrl string `protobuf:"bytes,3,opt,name=public_url,json=publicUrl" json:"public_url,omitempty"`
  370. Count int32 `protobuf:"varint,4,opt,name=count" json:"count,omitempty"`
  371. }
  372. func (m *AssignVolumeResponse) Reset() { *m = AssignVolumeResponse{} }
  373. func (m *AssignVolumeResponse) String() string { return proto.CompactTextString(m) }
  374. func (*AssignVolumeResponse) ProtoMessage() {}
  375. func (*AssignVolumeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
  376. func (m *AssignVolumeResponse) GetFileId() string {
  377. if m != nil {
  378. return m.FileId
  379. }
  380. return ""
  381. }
  382. func (m *AssignVolumeResponse) GetUrl() string {
  383. if m != nil {
  384. return m.Url
  385. }
  386. return ""
  387. }
  388. func (m *AssignVolumeResponse) GetPublicUrl() string {
  389. if m != nil {
  390. return m.PublicUrl
  391. }
  392. return ""
  393. }
  394. func (m *AssignVolumeResponse) GetCount() int32 {
  395. if m != nil {
  396. return m.Count
  397. }
  398. return 0
  399. }
  400. type AppendFileChunksRequest struct {
  401. Directory string `protobuf:"bytes,1,opt,name=directory" json:"directory,omitempty"`
  402. Entry *Entry `protobuf:"bytes,2,opt,name=entry" json:"entry,omitempty"`
  403. }
  404. func (m *AppendFileChunksRequest) Reset() { *m = AppendFileChunksRequest{} }
  405. func (m *AppendFileChunksRequest) String() string { return proto.CompactTextString(m) }
  406. func (*AppendFileChunksRequest) ProtoMessage() {}
  407. func (*AppendFileChunksRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
  408. func (m *AppendFileChunksRequest) GetDirectory() string {
  409. if m != nil {
  410. return m.Directory
  411. }
  412. return ""
  413. }
  414. func (m *AppendFileChunksRequest) GetEntry() *Entry {
  415. if m != nil {
  416. return m.Entry
  417. }
  418. return nil
  419. }
  420. type AppendFileChunksResponse struct {
  421. }
  422. func (m *AppendFileChunksResponse) Reset() { *m = AppendFileChunksResponse{} }
  423. func (m *AppendFileChunksResponse) String() string { return proto.CompactTextString(m) }
  424. func (*AppendFileChunksResponse) ProtoMessage() {}
  425. func (*AppendFileChunksResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
  426. func init() {
  427. proto.RegisterType((*LookupDirectoryEntryRequest)(nil), "filer_pb.LookupDirectoryEntryRequest")
  428. proto.RegisterType((*LookupDirectoryEntryResponse)(nil), "filer_pb.LookupDirectoryEntryResponse")
  429. proto.RegisterType((*ListEntriesRequest)(nil), "filer_pb.ListEntriesRequest")
  430. proto.RegisterType((*ListEntriesResponse)(nil), "filer_pb.ListEntriesResponse")
  431. proto.RegisterType((*Entry)(nil), "filer_pb.Entry")
  432. proto.RegisterType((*FileChunk)(nil), "filer_pb.FileChunk")
  433. proto.RegisterType((*FuseAttributes)(nil), "filer_pb.FuseAttributes")
  434. proto.RegisterType((*GetFileAttributesRequest)(nil), "filer_pb.GetFileAttributesRequest")
  435. proto.RegisterType((*GetFileAttributesResponse)(nil), "filer_pb.GetFileAttributesResponse")
  436. proto.RegisterType((*GetFileContentRequest)(nil), "filer_pb.GetFileContentRequest")
  437. proto.RegisterType((*GetFileContentResponse)(nil), "filer_pb.GetFileContentResponse")
  438. proto.RegisterType((*CreateEntryRequest)(nil), "filer_pb.CreateEntryRequest")
  439. proto.RegisterType((*CreateEntryResponse)(nil), "filer_pb.CreateEntryResponse")
  440. proto.RegisterType((*DeleteEntryRequest)(nil), "filer_pb.DeleteEntryRequest")
  441. proto.RegisterType((*DeleteEntryResponse)(nil), "filer_pb.DeleteEntryResponse")
  442. proto.RegisterType((*AssignVolumeRequest)(nil), "filer_pb.AssignVolumeRequest")
  443. proto.RegisterType((*AssignVolumeResponse)(nil), "filer_pb.AssignVolumeResponse")
  444. proto.RegisterType((*AppendFileChunksRequest)(nil), "filer_pb.AppendFileChunksRequest")
  445. proto.RegisterType((*AppendFileChunksResponse)(nil), "filer_pb.AppendFileChunksResponse")
  446. }
  447. // Reference imports to suppress errors if they are not otherwise used.
  448. var _ context.Context
  449. var _ grpc.ClientConn
  450. // This is a compile-time assertion to ensure that this generated file
  451. // is compatible with the grpc package it is being compiled against.
  452. const _ = grpc.SupportPackageIsVersion4
  453. // Client API for SeaweedFiler service
  454. type SeaweedFilerClient interface {
  455. LookupDirectoryEntry(ctx context.Context, in *LookupDirectoryEntryRequest, opts ...grpc.CallOption) (*LookupDirectoryEntryResponse, error)
  456. ListEntries(ctx context.Context, in *ListEntriesRequest, opts ...grpc.CallOption) (*ListEntriesResponse, error)
  457. GetFileAttributes(ctx context.Context, in *GetFileAttributesRequest, opts ...grpc.CallOption) (*GetFileAttributesResponse, error)
  458. GetFileContent(ctx context.Context, in *GetFileContentRequest, opts ...grpc.CallOption) (*GetFileContentResponse, error)
  459. CreateEntry(ctx context.Context, in *CreateEntryRequest, opts ...grpc.CallOption) (*CreateEntryResponse, error)
  460. AppendFileChunks(ctx context.Context, in *AppendFileChunksRequest, opts ...grpc.CallOption) (*AppendFileChunksResponse, error)
  461. DeleteEntry(ctx context.Context, in *DeleteEntryRequest, opts ...grpc.CallOption) (*DeleteEntryResponse, error)
  462. AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error)
  463. }
  464. type seaweedFilerClient struct {
  465. cc *grpc.ClientConn
  466. }
  467. func NewSeaweedFilerClient(cc *grpc.ClientConn) SeaweedFilerClient {
  468. return &seaweedFilerClient{cc}
  469. }
  470. func (c *seaweedFilerClient) LookupDirectoryEntry(ctx context.Context, in *LookupDirectoryEntryRequest, opts ...grpc.CallOption) (*LookupDirectoryEntryResponse, error) {
  471. out := new(LookupDirectoryEntryResponse)
  472. err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/LookupDirectoryEntry", in, out, c.cc, opts...)
  473. if err != nil {
  474. return nil, err
  475. }
  476. return out, nil
  477. }
  478. func (c *seaweedFilerClient) ListEntries(ctx context.Context, in *ListEntriesRequest, opts ...grpc.CallOption) (*ListEntriesResponse, error) {
  479. out := new(ListEntriesResponse)
  480. err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/ListEntries", in, out, c.cc, opts...)
  481. if err != nil {
  482. return nil, err
  483. }
  484. return out, nil
  485. }
  486. func (c *seaweedFilerClient) GetFileAttributes(ctx context.Context, in *GetFileAttributesRequest, opts ...grpc.CallOption) (*GetFileAttributesResponse, error) {
  487. out := new(GetFileAttributesResponse)
  488. err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/GetFileAttributes", in, out, c.cc, opts...)
  489. if err != nil {
  490. return nil, err
  491. }
  492. return out, nil
  493. }
  494. func (c *seaweedFilerClient) GetFileContent(ctx context.Context, in *GetFileContentRequest, opts ...grpc.CallOption) (*GetFileContentResponse, error) {
  495. out := new(GetFileContentResponse)
  496. err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/GetFileContent", in, out, c.cc, opts...)
  497. if err != nil {
  498. return nil, err
  499. }
  500. return out, nil
  501. }
  502. func (c *seaweedFilerClient) CreateEntry(ctx context.Context, in *CreateEntryRequest, opts ...grpc.CallOption) (*CreateEntryResponse, error) {
  503. out := new(CreateEntryResponse)
  504. err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/CreateEntry", in, out, c.cc, opts...)
  505. if err != nil {
  506. return nil, err
  507. }
  508. return out, nil
  509. }
  510. func (c *seaweedFilerClient) AppendFileChunks(ctx context.Context, in *AppendFileChunksRequest, opts ...grpc.CallOption) (*AppendFileChunksResponse, error) {
  511. out := new(AppendFileChunksResponse)
  512. err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/AppendFileChunks", in, out, c.cc, opts...)
  513. if err != nil {
  514. return nil, err
  515. }
  516. return out, nil
  517. }
  518. func (c *seaweedFilerClient) DeleteEntry(ctx context.Context, in *DeleteEntryRequest, opts ...grpc.CallOption) (*DeleteEntryResponse, error) {
  519. out := new(DeleteEntryResponse)
  520. err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/DeleteEntry", in, out, c.cc, opts...)
  521. if err != nil {
  522. return nil, err
  523. }
  524. return out, nil
  525. }
  526. func (c *seaweedFilerClient) AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error) {
  527. out := new(AssignVolumeResponse)
  528. err := grpc.Invoke(ctx, "/filer_pb.SeaweedFiler/AssignVolume", in, out, c.cc, opts...)
  529. if err != nil {
  530. return nil, err
  531. }
  532. return out, nil
  533. }
  534. // Server API for SeaweedFiler service
  535. type SeaweedFilerServer interface {
  536. LookupDirectoryEntry(context.Context, *LookupDirectoryEntryRequest) (*LookupDirectoryEntryResponse, error)
  537. ListEntries(context.Context, *ListEntriesRequest) (*ListEntriesResponse, error)
  538. GetFileAttributes(context.Context, *GetFileAttributesRequest) (*GetFileAttributesResponse, error)
  539. GetFileContent(context.Context, *GetFileContentRequest) (*GetFileContentResponse, error)
  540. CreateEntry(context.Context, *CreateEntryRequest) (*CreateEntryResponse, error)
  541. AppendFileChunks(context.Context, *AppendFileChunksRequest) (*AppendFileChunksResponse, error)
  542. DeleteEntry(context.Context, *DeleteEntryRequest) (*DeleteEntryResponse, error)
  543. AssignVolume(context.Context, *AssignVolumeRequest) (*AssignVolumeResponse, error)
  544. }
  545. func RegisterSeaweedFilerServer(s *grpc.Server, srv SeaweedFilerServer) {
  546. s.RegisterService(&_SeaweedFiler_serviceDesc, srv)
  547. }
  548. func _SeaweedFiler_LookupDirectoryEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  549. in := new(LookupDirectoryEntryRequest)
  550. if err := dec(in); err != nil {
  551. return nil, err
  552. }
  553. if interceptor == nil {
  554. return srv.(SeaweedFilerServer).LookupDirectoryEntry(ctx, in)
  555. }
  556. info := &grpc.UnaryServerInfo{
  557. Server: srv,
  558. FullMethod: "/filer_pb.SeaweedFiler/LookupDirectoryEntry",
  559. }
  560. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  561. return srv.(SeaweedFilerServer).LookupDirectoryEntry(ctx, req.(*LookupDirectoryEntryRequest))
  562. }
  563. return interceptor(ctx, in, info, handler)
  564. }
  565. func _SeaweedFiler_ListEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  566. in := new(ListEntriesRequest)
  567. if err := dec(in); err != nil {
  568. return nil, err
  569. }
  570. if interceptor == nil {
  571. return srv.(SeaweedFilerServer).ListEntries(ctx, in)
  572. }
  573. info := &grpc.UnaryServerInfo{
  574. Server: srv,
  575. FullMethod: "/filer_pb.SeaweedFiler/ListEntries",
  576. }
  577. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  578. return srv.(SeaweedFilerServer).ListEntries(ctx, req.(*ListEntriesRequest))
  579. }
  580. return interceptor(ctx, in, info, handler)
  581. }
  582. func _SeaweedFiler_GetFileAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  583. in := new(GetFileAttributesRequest)
  584. if err := dec(in); err != nil {
  585. return nil, err
  586. }
  587. if interceptor == nil {
  588. return srv.(SeaweedFilerServer).GetFileAttributes(ctx, in)
  589. }
  590. info := &grpc.UnaryServerInfo{
  591. Server: srv,
  592. FullMethod: "/filer_pb.SeaweedFiler/GetFileAttributes",
  593. }
  594. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  595. return srv.(SeaweedFilerServer).GetFileAttributes(ctx, req.(*GetFileAttributesRequest))
  596. }
  597. return interceptor(ctx, in, info, handler)
  598. }
  599. func _SeaweedFiler_GetFileContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  600. in := new(GetFileContentRequest)
  601. if err := dec(in); err != nil {
  602. return nil, err
  603. }
  604. if interceptor == nil {
  605. return srv.(SeaweedFilerServer).GetFileContent(ctx, in)
  606. }
  607. info := &grpc.UnaryServerInfo{
  608. Server: srv,
  609. FullMethod: "/filer_pb.SeaweedFiler/GetFileContent",
  610. }
  611. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  612. return srv.(SeaweedFilerServer).GetFileContent(ctx, req.(*GetFileContentRequest))
  613. }
  614. return interceptor(ctx, in, info, handler)
  615. }
  616. func _SeaweedFiler_CreateEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  617. in := new(CreateEntryRequest)
  618. if err := dec(in); err != nil {
  619. return nil, err
  620. }
  621. if interceptor == nil {
  622. return srv.(SeaweedFilerServer).CreateEntry(ctx, in)
  623. }
  624. info := &grpc.UnaryServerInfo{
  625. Server: srv,
  626. FullMethod: "/filer_pb.SeaweedFiler/CreateEntry",
  627. }
  628. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  629. return srv.(SeaweedFilerServer).CreateEntry(ctx, req.(*CreateEntryRequest))
  630. }
  631. return interceptor(ctx, in, info, handler)
  632. }
  633. func _SeaweedFiler_AppendFileChunks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  634. in := new(AppendFileChunksRequest)
  635. if err := dec(in); err != nil {
  636. return nil, err
  637. }
  638. if interceptor == nil {
  639. return srv.(SeaweedFilerServer).AppendFileChunks(ctx, in)
  640. }
  641. info := &grpc.UnaryServerInfo{
  642. Server: srv,
  643. FullMethod: "/filer_pb.SeaweedFiler/AppendFileChunks",
  644. }
  645. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  646. return srv.(SeaweedFilerServer).AppendFileChunks(ctx, req.(*AppendFileChunksRequest))
  647. }
  648. return interceptor(ctx, in, info, handler)
  649. }
  650. func _SeaweedFiler_DeleteEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  651. in := new(DeleteEntryRequest)
  652. if err := dec(in); err != nil {
  653. return nil, err
  654. }
  655. if interceptor == nil {
  656. return srv.(SeaweedFilerServer).DeleteEntry(ctx, in)
  657. }
  658. info := &grpc.UnaryServerInfo{
  659. Server: srv,
  660. FullMethod: "/filer_pb.SeaweedFiler/DeleteEntry",
  661. }
  662. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  663. return srv.(SeaweedFilerServer).DeleteEntry(ctx, req.(*DeleteEntryRequest))
  664. }
  665. return interceptor(ctx, in, info, handler)
  666. }
  667. func _SeaweedFiler_AssignVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  668. in := new(AssignVolumeRequest)
  669. if err := dec(in); err != nil {
  670. return nil, err
  671. }
  672. if interceptor == nil {
  673. return srv.(SeaweedFilerServer).AssignVolume(ctx, in)
  674. }
  675. info := &grpc.UnaryServerInfo{
  676. Server: srv,
  677. FullMethod: "/filer_pb.SeaweedFiler/AssignVolume",
  678. }
  679. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  680. return srv.(SeaweedFilerServer).AssignVolume(ctx, req.(*AssignVolumeRequest))
  681. }
  682. return interceptor(ctx, in, info, handler)
  683. }
  684. var _SeaweedFiler_serviceDesc = grpc.ServiceDesc{
  685. ServiceName: "filer_pb.SeaweedFiler",
  686. HandlerType: (*SeaweedFilerServer)(nil),
  687. Methods: []grpc.MethodDesc{
  688. {
  689. MethodName: "LookupDirectoryEntry",
  690. Handler: _SeaweedFiler_LookupDirectoryEntry_Handler,
  691. },
  692. {
  693. MethodName: "ListEntries",
  694. Handler: _SeaweedFiler_ListEntries_Handler,
  695. },
  696. {
  697. MethodName: "GetFileAttributes",
  698. Handler: _SeaweedFiler_GetFileAttributes_Handler,
  699. },
  700. {
  701. MethodName: "GetFileContent",
  702. Handler: _SeaweedFiler_GetFileContent_Handler,
  703. },
  704. {
  705. MethodName: "CreateEntry",
  706. Handler: _SeaweedFiler_CreateEntry_Handler,
  707. },
  708. {
  709. MethodName: "AppendFileChunks",
  710. Handler: _SeaweedFiler_AppendFileChunks_Handler,
  711. },
  712. {
  713. MethodName: "DeleteEntry",
  714. Handler: _SeaweedFiler_DeleteEntry_Handler,
  715. },
  716. {
  717. MethodName: "AssignVolume",
  718. Handler: _SeaweedFiler_AssignVolume_Handler,
  719. },
  720. },
  721. Streams: []grpc.StreamDesc{},
  722. Metadata: "filer.proto",
  723. }
  724. func init() { proto.RegisterFile("filer.proto", fileDescriptor0) }
  725. var fileDescriptor0 = []byte{
  726. // 767 bytes of a gzipped FileDescriptorProto
  727. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x56, 0x6d, 0x4f, 0xdb, 0x48,
  728. 0x10, 0xc6, 0x38, 0x09, 0x64, 0x12, 0x38, 0x6e, 0x13, 0xc0, 0x17, 0x5e, 0x2e, 0xec, 0x89, 0x13,
  729. 0xa7, 0x93, 0xd0, 0x29, 0xf7, 0xa5, 0x1f, 0x8b, 0x80, 0x56, 0x95, 0xa8, 0x90, 0x8c, 0xa8, 0x54,
  730. 0x55, 0x22, 0x4a, 0xec, 0x49, 0xba, 0xc2, 0xb1, 0x5d, 0x7b, 0xdd, 0x8a, 0x7e, 0xee, 0x5f, 0xe9,
  731. 0x5f, 0xe9, 0xef, 0xaa, 0x76, 0xbd, 0xb1, 0xd7, 0xd8, 0x49, 0x8b, 0xd4, 0x6f, 0xde, 0x79, 0x79,
  732. 0xe6, 0xd9, 0x99, 0x79, 0x36, 0x81, 0xd6, 0x84, 0x79, 0x18, 0x9d, 0x86, 0x51, 0xc0, 0x03, 0xb2,
  733. 0x2e, 0x0f, 0xc3, 0x70, 0x4c, 0xaf, 0x61, 0xef, 0x2a, 0x08, 0xee, 0x93, 0xf0, 0x82, 0x45, 0xe8,
  734. 0xf0, 0x20, 0x7a, 0xb8, 0xf4, 0x79, 0xf4, 0x60, 0xe3, 0x87, 0x04, 0x63, 0x4e, 0xf6, 0xa1, 0xe9,
  735. 0xce, 0x1d, 0x96, 0xd1, 0x37, 0x4e, 0x9a, 0x76, 0x6e, 0x20, 0x04, 0x6a, 0xfe, 0x68, 0x86, 0xd6,
  736. 0xaa, 0x74, 0xc8, 0x6f, 0x7a, 0x09, 0xfb, 0xd5, 0x80, 0x71, 0x18, 0xf8, 0x31, 0x92, 0x63, 0xa8,
  737. 0xa3, 0x30, 0x48, 0xb4, 0xd6, 0xe0, 0xb7, 0xd3, 0x39, 0x95, 0xd3, 0x34, 0x2e, 0xf5, 0xd2, 0x01,
  738. 0x90, 0x2b, 0x16, 0x73, 0x61, 0x63, 0x18, 0xff, 0x14, 0x1d, 0xfa, 0x1c, 0x3a, 0x85, 0x1c, 0x55,
  739. 0xf1, 0x1f, 0x58, 0xc3, 0xd4, 0x64, 0x19, 0x7d, 0xb3, 0xaa, 0xe6, 0xdc, 0x4f, 0xbf, 0x1a, 0x50,
  740. 0x97, 0xa6, 0xec, 0x6a, 0x46, 0x7e, 0x35, 0x72, 0x04, 0x6d, 0x16, 0x0f, 0x73, 0x02, 0xe2, 0xda,
  741. 0xeb, 0x76, 0x8b, 0xc5, 0xd9, 0x55, 0xc9, 0xbf, 0xd0, 0x70, 0xde, 0x27, 0xfe, 0x7d, 0x6c, 0x99,
  742. 0xb2, 0x54, 0x27, 0x2f, 0xf5, 0x82, 0x79, 0x78, 0x2e, 0x7c, 0xb6, 0x0a, 0x21, 0xcf, 0x00, 0x46,
  743. 0x9c, 0x47, 0x6c, 0x9c, 0x70, 0x8c, 0xad, 0x9a, 0xec, 0x87, 0xa5, 0x25, 0x24, 0x31, 0x9e, 0x65,
  744. 0x7e, 0x5b, 0x8b, 0xa5, 0x13, 0x68, 0x66, 0x70, 0x64, 0x17, 0xd6, 0x44, 0xce, 0x90, 0xb9, 0x8a,
  745. 0x6d, 0x43, 0x1c, 0x5f, 0xb9, 0x64, 0x07, 0x1a, 0xc1, 0x64, 0x12, 0x23, 0x97, 0x4c, 0x4d, 0x5b,
  746. 0x9d, 0xc4, 0xdd, 0x62, 0xf6, 0x19, 0x2d, 0xb3, 0x6f, 0x9c, 0xd4, 0x6c, 0xf9, 0x4d, 0xba, 0x50,
  747. 0x9f, 0x71, 0x36, 0x43, 0x49, 0xc3, 0xb4, 0xd3, 0x03, 0xfd, 0x62, 0xc0, 0x66, 0x91, 0x06, 0xd9,
  748. 0x83, 0xa6, 0xac, 0x26, 0x11, 0x0c, 0x89, 0x20, 0xb7, 0xe9, 0xa6, 0x80, 0xb2, 0xaa, 0xa1, 0x64,
  749. 0x29, 0xb3, 0xc0, 0x4d, 0x8b, 0x6e, 0xa4, 0x29, 0xaf, 0x03, 0x17, 0xc9, 0x16, 0x98, 0x09, 0x73,
  750. 0x65, 0xd9, 0x0d, 0x5b, 0x7c, 0x0a, 0xcb, 0x94, 0xb9, 0x56, 0x3d, 0xb5, 0x4c, 0x99, 0x4b, 0x27,
  751. 0x60, 0xbd, 0x44, 0x2e, 0x6e, 0xac, 0xf5, 0x43, 0xad, 0x44, 0xd5, 0xa0, 0x0e, 0x00, 0xc2, 0x51,
  752. 0x84, 0x3e, 0x17, 0xc3, 0x52, 0xdb, 0xd9, 0x4c, 0x2d, 0x17, 0x2c, 0xd2, 0x1b, 0x66, 0xea, 0x0d,
  753. 0xa3, 0xb7, 0xf0, 0x47, 0x45, 0x1d, 0xb5, 0x46, 0xc5, 0x69, 0x19, 0x4f, 0x98, 0xd6, 0x7f, 0xb0,
  754. 0xad, 0x60, 0xcf, 0x03, 0x9f, 0xa3, 0xcf, 0xe7, 0xdc, 0x17, 0x4d, 0x8e, 0x0e, 0x60, 0xe7, 0x71,
  755. 0x86, 0x62, 0x61, 0xc1, 0x9a, 0x93, 0x9a, 0x64, 0x4a, 0xdb, 0x9e, 0x1f, 0xe9, 0x5b, 0x20, 0xe7,
  756. 0x11, 0x8e, 0x38, 0x3e, 0x41, 0xc0, 0x99, 0x18, 0x57, 0x97, 0x8a, 0x71, 0x1b, 0x3a, 0x05, 0xe8,
  757. 0x94, 0x0b, 0x65, 0x40, 0x2e, 0xd0, 0xc3, 0x27, 0x55, 0xac, 0x78, 0x32, 0x4a, 0xba, 0x32, 0x4b,
  758. 0xba, 0x12, 0x0c, 0x0a, 0xa5, 0x14, 0x83, 0x19, 0x74, 0xce, 0xe2, 0x98, 0x4d, 0xfd, 0x37, 0x81,
  759. 0x97, 0xcc, 0x70, 0x4e, 0xa1, 0x0b, 0x75, 0x27, 0x48, 0x54, 0x8b, 0xea, 0x76, 0x7a, 0x20, 0x87,
  760. 0x00, 0x4e, 0xe0, 0x79, 0xe8, 0x70, 0x16, 0xf8, 0x8a, 0x80, 0x66, 0x21, 0x7d, 0x68, 0x45, 0x18,
  761. 0x7a, 0xcc, 0x19, 0xc9, 0x80, 0x74, 0x35, 0x74, 0x13, 0xfd, 0x08, 0xdd, 0x62, 0x39, 0x35, 0x94,
  762. 0x85, 0x0a, 0x14, 0xcb, 0x1d, 0x79, 0xaa, 0x96, 0xf8, 0x94, 0xab, 0x99, 0x8c, 0x3d, 0xe6, 0x0c,
  763. 0x85, 0xc3, 0x54, 0xab, 0x29, 0x2d, 0xb7, 0x91, 0x97, 0x33, 0xaf, 0x69, 0xcc, 0xe9, 0x1d, 0xec,
  764. 0x9e, 0x85, 0x21, 0xfa, 0x6e, 0x26, 0xfa, 0xf8, 0x97, 0xce, 0xb7, 0x07, 0x56, 0x19, 0x3f, 0xbd,
  765. 0xdb, 0xe0, 0x5b, 0x1d, 0xda, 0x37, 0x38, 0xfa, 0x84, 0x28, 0xbd, 0x11, 0x99, 0x42, 0xb7, 0xea,
  766. 0x81, 0x27, 0xc7, 0x39, 0xf8, 0x92, 0x5f, 0x94, 0xde, 0xdf, 0x3f, 0x0a, 0x53, 0xa3, 0x5d, 0x21,
  767. 0x57, 0xd0, 0xd2, 0x9e, 0x73, 0xb2, 0xaf, 0x25, 0x96, 0x7e, 0x19, 0x7a, 0x07, 0x0b, 0xbc, 0x19,
  768. 0xda, 0x1d, 0xfc, 0x5e, 0xd2, 0x36, 0xa1, 0x79, 0xd6, 0xa2, 0x07, 0xa6, 0xf7, 0xd7, 0xd2, 0x98,
  769. 0x0c, 0xff, 0x16, 0x36, 0x8b, 0x92, 0x25, 0x7f, 0x96, 0x12, 0x8b, 0xf2, 0xef, 0xf5, 0x17, 0x07,
  770. 0xe8, 0x4d, 0xd0, 0xa4, 0xa7, 0x37, 0xa1, 0x2c, 0x76, 0xbd, 0x09, 0x55, 0x7a, 0x5d, 0x21, 0xef,
  771. 0x60, 0xeb, 0xf1, 0xa0, 0xc9, 0x51, 0x9e, 0xb4, 0x60, 0xc9, 0x7a, 0x74, 0x59, 0x88, 0x4e, 0x55,
  772. 0xd3, 0xa8, 0x4e, 0xb5, 0xfc, 0x4a, 0xe8, 0x54, 0xab, 0x84, 0xbd, 0x42, 0xae, 0xa1, 0xad, 0x6b,
  773. 0x8d, 0x68, 0x09, 0x15, 0x92, 0xef, 0x1d, 0x2e, 0x72, 0xcf, 0x01, 0xc7, 0x0d, 0xf9, 0xd7, 0xe7,
  774. 0xff, 0xef, 0x01, 0x00, 0x00, 0xff, 0xff, 0x01, 0x52, 0xae, 0x82, 0x09, 0x09, 0x00, 0x00,
  775. }