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.

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