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.

1006 lines
38 KiB

  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.2.0
  4. // - protoc v4.23.3
  5. // source: filer.proto
  6. package filer_pb
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. )
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the grpc package it is being compiled against.
  15. // Requires gRPC-Go v1.32.0 or later.
  16. const _ = grpc.SupportPackageIsVersion7
  17. // SeaweedFilerClient is the client API for SeaweedFiler service.
  18. //
  19. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  20. type SeaweedFilerClient interface {
  21. LookupDirectoryEntry(ctx context.Context, in *LookupDirectoryEntryRequest, opts ...grpc.CallOption) (*LookupDirectoryEntryResponse, error)
  22. ListEntries(ctx context.Context, in *ListEntriesRequest, opts ...grpc.CallOption) (SeaweedFiler_ListEntriesClient, error)
  23. CreateEntry(ctx context.Context, in *CreateEntryRequest, opts ...grpc.CallOption) (*CreateEntryResponse, error)
  24. UpdateEntry(ctx context.Context, in *UpdateEntryRequest, opts ...grpc.CallOption) (*UpdateEntryResponse, error)
  25. AppendToEntry(ctx context.Context, in *AppendToEntryRequest, opts ...grpc.CallOption) (*AppendToEntryResponse, error)
  26. DeleteEntry(ctx context.Context, in *DeleteEntryRequest, opts ...grpc.CallOption) (*DeleteEntryResponse, error)
  27. AtomicRenameEntry(ctx context.Context, in *AtomicRenameEntryRequest, opts ...grpc.CallOption) (*AtomicRenameEntryResponse, error)
  28. StreamRenameEntry(ctx context.Context, in *StreamRenameEntryRequest, opts ...grpc.CallOption) (SeaweedFiler_StreamRenameEntryClient, error)
  29. AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error)
  30. LookupVolume(ctx context.Context, in *LookupVolumeRequest, opts ...grpc.CallOption) (*LookupVolumeResponse, error)
  31. CollectionList(ctx context.Context, in *CollectionListRequest, opts ...grpc.CallOption) (*CollectionListResponse, error)
  32. DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error)
  33. Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsResponse, error)
  34. Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
  35. GetFilerConfiguration(ctx context.Context, in *GetFilerConfigurationRequest, opts ...grpc.CallOption) (*GetFilerConfigurationResponse, error)
  36. SubscribeMetadata(ctx context.Context, in *SubscribeMetadataRequest, opts ...grpc.CallOption) (SeaweedFiler_SubscribeMetadataClient, error)
  37. SubscribeLocalMetadata(ctx context.Context, in *SubscribeMetadataRequest, opts ...grpc.CallOption) (SeaweedFiler_SubscribeLocalMetadataClient, error)
  38. KvGet(ctx context.Context, in *KvGetRequest, opts ...grpc.CallOption) (*KvGetResponse, error)
  39. KvPut(ctx context.Context, in *KvPutRequest, opts ...grpc.CallOption) (*KvPutResponse, error)
  40. CacheRemoteObjectToLocalCluster(ctx context.Context, in *CacheRemoteObjectToLocalClusterRequest, opts ...grpc.CallOption) (*CacheRemoteObjectToLocalClusterResponse, error)
  41. Lock(ctx context.Context, in *LockRequest, opts ...grpc.CallOption) (*LockResponse, error)
  42. Unlock(ctx context.Context, in *UnlockRequest, opts ...grpc.CallOption) (*UnlockResponse, error)
  43. TransferLocks(ctx context.Context, in *TransferLocksRequest, opts ...grpc.CallOption) (*TransferLocksResponse, error)
  44. }
  45. type seaweedFilerClient struct {
  46. cc grpc.ClientConnInterface
  47. }
  48. func NewSeaweedFilerClient(cc grpc.ClientConnInterface) SeaweedFilerClient {
  49. return &seaweedFilerClient{cc}
  50. }
  51. func (c *seaweedFilerClient) LookupDirectoryEntry(ctx context.Context, in *LookupDirectoryEntryRequest, opts ...grpc.CallOption) (*LookupDirectoryEntryResponse, error) {
  52. out := new(LookupDirectoryEntryResponse)
  53. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/LookupDirectoryEntry", in, out, opts...)
  54. if err != nil {
  55. return nil, err
  56. }
  57. return out, nil
  58. }
  59. func (c *seaweedFilerClient) ListEntries(ctx context.Context, in *ListEntriesRequest, opts ...grpc.CallOption) (SeaweedFiler_ListEntriesClient, error) {
  60. stream, err := c.cc.NewStream(ctx, &SeaweedFiler_ServiceDesc.Streams[0], "/filer_pb.SeaweedFiler/ListEntries", opts...)
  61. if err != nil {
  62. return nil, err
  63. }
  64. x := &seaweedFilerListEntriesClient{stream}
  65. if err := x.ClientStream.SendMsg(in); err != nil {
  66. return nil, err
  67. }
  68. if err := x.ClientStream.CloseSend(); err != nil {
  69. return nil, err
  70. }
  71. return x, nil
  72. }
  73. type SeaweedFiler_ListEntriesClient interface {
  74. Recv() (*ListEntriesResponse, error)
  75. grpc.ClientStream
  76. }
  77. type seaweedFilerListEntriesClient struct {
  78. grpc.ClientStream
  79. }
  80. func (x *seaweedFilerListEntriesClient) Recv() (*ListEntriesResponse, error) {
  81. m := new(ListEntriesResponse)
  82. if err := x.ClientStream.RecvMsg(m); err != nil {
  83. return nil, err
  84. }
  85. return m, nil
  86. }
  87. func (c *seaweedFilerClient) CreateEntry(ctx context.Context, in *CreateEntryRequest, opts ...grpc.CallOption) (*CreateEntryResponse, error) {
  88. out := new(CreateEntryResponse)
  89. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/CreateEntry", in, out, opts...)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return out, nil
  94. }
  95. func (c *seaweedFilerClient) UpdateEntry(ctx context.Context, in *UpdateEntryRequest, opts ...grpc.CallOption) (*UpdateEntryResponse, error) {
  96. out := new(UpdateEntryResponse)
  97. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/UpdateEntry", in, out, opts...)
  98. if err != nil {
  99. return nil, err
  100. }
  101. return out, nil
  102. }
  103. func (c *seaweedFilerClient) AppendToEntry(ctx context.Context, in *AppendToEntryRequest, opts ...grpc.CallOption) (*AppendToEntryResponse, error) {
  104. out := new(AppendToEntryResponse)
  105. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/AppendToEntry", in, out, opts...)
  106. if err != nil {
  107. return nil, err
  108. }
  109. return out, nil
  110. }
  111. func (c *seaweedFilerClient) DeleteEntry(ctx context.Context, in *DeleteEntryRequest, opts ...grpc.CallOption) (*DeleteEntryResponse, error) {
  112. out := new(DeleteEntryResponse)
  113. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/DeleteEntry", in, out, opts...)
  114. if err != nil {
  115. return nil, err
  116. }
  117. return out, nil
  118. }
  119. func (c *seaweedFilerClient) AtomicRenameEntry(ctx context.Context, in *AtomicRenameEntryRequest, opts ...grpc.CallOption) (*AtomicRenameEntryResponse, error) {
  120. out := new(AtomicRenameEntryResponse)
  121. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/AtomicRenameEntry", in, out, opts...)
  122. if err != nil {
  123. return nil, err
  124. }
  125. return out, nil
  126. }
  127. func (c *seaweedFilerClient) StreamRenameEntry(ctx context.Context, in *StreamRenameEntryRequest, opts ...grpc.CallOption) (SeaweedFiler_StreamRenameEntryClient, error) {
  128. stream, err := c.cc.NewStream(ctx, &SeaweedFiler_ServiceDesc.Streams[1], "/filer_pb.SeaweedFiler/StreamRenameEntry", opts...)
  129. if err != nil {
  130. return nil, err
  131. }
  132. x := &seaweedFilerStreamRenameEntryClient{stream}
  133. if err := x.ClientStream.SendMsg(in); err != nil {
  134. return nil, err
  135. }
  136. if err := x.ClientStream.CloseSend(); err != nil {
  137. return nil, err
  138. }
  139. return x, nil
  140. }
  141. type SeaweedFiler_StreamRenameEntryClient interface {
  142. Recv() (*StreamRenameEntryResponse, error)
  143. grpc.ClientStream
  144. }
  145. type seaweedFilerStreamRenameEntryClient struct {
  146. grpc.ClientStream
  147. }
  148. func (x *seaweedFilerStreamRenameEntryClient) Recv() (*StreamRenameEntryResponse, error) {
  149. m := new(StreamRenameEntryResponse)
  150. if err := x.ClientStream.RecvMsg(m); err != nil {
  151. return nil, err
  152. }
  153. return m, nil
  154. }
  155. func (c *seaweedFilerClient) AssignVolume(ctx context.Context, in *AssignVolumeRequest, opts ...grpc.CallOption) (*AssignVolumeResponse, error) {
  156. out := new(AssignVolumeResponse)
  157. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/AssignVolume", in, out, opts...)
  158. if err != nil {
  159. return nil, err
  160. }
  161. return out, nil
  162. }
  163. func (c *seaweedFilerClient) LookupVolume(ctx context.Context, in *LookupVolumeRequest, opts ...grpc.CallOption) (*LookupVolumeResponse, error) {
  164. out := new(LookupVolumeResponse)
  165. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/LookupVolume", in, out, opts...)
  166. if err != nil {
  167. return nil, err
  168. }
  169. return out, nil
  170. }
  171. func (c *seaweedFilerClient) CollectionList(ctx context.Context, in *CollectionListRequest, opts ...grpc.CallOption) (*CollectionListResponse, error) {
  172. out := new(CollectionListResponse)
  173. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/CollectionList", in, out, opts...)
  174. if err != nil {
  175. return nil, err
  176. }
  177. return out, nil
  178. }
  179. func (c *seaweedFilerClient) DeleteCollection(ctx context.Context, in *DeleteCollectionRequest, opts ...grpc.CallOption) (*DeleteCollectionResponse, error) {
  180. out := new(DeleteCollectionResponse)
  181. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/DeleteCollection", in, out, opts...)
  182. if err != nil {
  183. return nil, err
  184. }
  185. return out, nil
  186. }
  187. func (c *seaweedFilerClient) Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsResponse, error) {
  188. out := new(StatisticsResponse)
  189. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/Statistics", in, out, opts...)
  190. if err != nil {
  191. return nil, err
  192. }
  193. return out, nil
  194. }
  195. func (c *seaweedFilerClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) {
  196. out := new(PingResponse)
  197. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/Ping", in, out, opts...)
  198. if err != nil {
  199. return nil, err
  200. }
  201. return out, nil
  202. }
  203. func (c *seaweedFilerClient) GetFilerConfiguration(ctx context.Context, in *GetFilerConfigurationRequest, opts ...grpc.CallOption) (*GetFilerConfigurationResponse, error) {
  204. out := new(GetFilerConfigurationResponse)
  205. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/GetFilerConfiguration", in, out, opts...)
  206. if err != nil {
  207. return nil, err
  208. }
  209. return out, nil
  210. }
  211. func (c *seaweedFilerClient) SubscribeMetadata(ctx context.Context, in *SubscribeMetadataRequest, opts ...grpc.CallOption) (SeaweedFiler_SubscribeMetadataClient, error) {
  212. stream, err := c.cc.NewStream(ctx, &SeaweedFiler_ServiceDesc.Streams[2], "/filer_pb.SeaweedFiler/SubscribeMetadata", opts...)
  213. if err != nil {
  214. return nil, err
  215. }
  216. x := &seaweedFilerSubscribeMetadataClient{stream}
  217. if err := x.ClientStream.SendMsg(in); err != nil {
  218. return nil, err
  219. }
  220. if err := x.ClientStream.CloseSend(); err != nil {
  221. return nil, err
  222. }
  223. return x, nil
  224. }
  225. type SeaweedFiler_SubscribeMetadataClient interface {
  226. Recv() (*SubscribeMetadataResponse, error)
  227. grpc.ClientStream
  228. }
  229. type seaweedFilerSubscribeMetadataClient struct {
  230. grpc.ClientStream
  231. }
  232. func (x *seaweedFilerSubscribeMetadataClient) Recv() (*SubscribeMetadataResponse, error) {
  233. m := new(SubscribeMetadataResponse)
  234. if err := x.ClientStream.RecvMsg(m); err != nil {
  235. return nil, err
  236. }
  237. return m, nil
  238. }
  239. func (c *seaweedFilerClient) SubscribeLocalMetadata(ctx context.Context, in *SubscribeMetadataRequest, opts ...grpc.CallOption) (SeaweedFiler_SubscribeLocalMetadataClient, error) {
  240. stream, err := c.cc.NewStream(ctx, &SeaweedFiler_ServiceDesc.Streams[3], "/filer_pb.SeaweedFiler/SubscribeLocalMetadata", opts...)
  241. if err != nil {
  242. return nil, err
  243. }
  244. x := &seaweedFilerSubscribeLocalMetadataClient{stream}
  245. if err := x.ClientStream.SendMsg(in); err != nil {
  246. return nil, err
  247. }
  248. if err := x.ClientStream.CloseSend(); err != nil {
  249. return nil, err
  250. }
  251. return x, nil
  252. }
  253. type SeaweedFiler_SubscribeLocalMetadataClient interface {
  254. Recv() (*SubscribeMetadataResponse, error)
  255. grpc.ClientStream
  256. }
  257. type seaweedFilerSubscribeLocalMetadataClient struct {
  258. grpc.ClientStream
  259. }
  260. func (x *seaweedFilerSubscribeLocalMetadataClient) Recv() (*SubscribeMetadataResponse, error) {
  261. m := new(SubscribeMetadataResponse)
  262. if err := x.ClientStream.RecvMsg(m); err != nil {
  263. return nil, err
  264. }
  265. return m, nil
  266. }
  267. func (c *seaweedFilerClient) KvGet(ctx context.Context, in *KvGetRequest, opts ...grpc.CallOption) (*KvGetResponse, error) {
  268. out := new(KvGetResponse)
  269. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/KvGet", in, out, opts...)
  270. if err != nil {
  271. return nil, err
  272. }
  273. return out, nil
  274. }
  275. func (c *seaweedFilerClient) KvPut(ctx context.Context, in *KvPutRequest, opts ...grpc.CallOption) (*KvPutResponse, error) {
  276. out := new(KvPutResponse)
  277. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/KvPut", in, out, opts...)
  278. if err != nil {
  279. return nil, err
  280. }
  281. return out, nil
  282. }
  283. func (c *seaweedFilerClient) CacheRemoteObjectToLocalCluster(ctx context.Context, in *CacheRemoteObjectToLocalClusterRequest, opts ...grpc.CallOption) (*CacheRemoteObjectToLocalClusterResponse, error) {
  284. out := new(CacheRemoteObjectToLocalClusterResponse)
  285. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/CacheRemoteObjectToLocalCluster", in, out, opts...)
  286. if err != nil {
  287. return nil, err
  288. }
  289. return out, nil
  290. }
  291. func (c *seaweedFilerClient) Lock(ctx context.Context, in *LockRequest, opts ...grpc.CallOption) (*LockResponse, error) {
  292. out := new(LockResponse)
  293. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/Lock", in, out, opts...)
  294. if err != nil {
  295. return nil, err
  296. }
  297. return out, nil
  298. }
  299. func (c *seaweedFilerClient) Unlock(ctx context.Context, in *UnlockRequest, opts ...grpc.CallOption) (*UnlockResponse, error) {
  300. out := new(UnlockResponse)
  301. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/Unlock", in, out, opts...)
  302. if err != nil {
  303. return nil, err
  304. }
  305. return out, nil
  306. }
  307. func (c *seaweedFilerClient) TransferLocks(ctx context.Context, in *TransferLocksRequest, opts ...grpc.CallOption) (*TransferLocksResponse, error) {
  308. out := new(TransferLocksResponse)
  309. err := c.cc.Invoke(ctx, "/filer_pb.SeaweedFiler/TransferLocks", in, out, opts...)
  310. if err != nil {
  311. return nil, err
  312. }
  313. return out, nil
  314. }
  315. // SeaweedFilerServer is the server API for SeaweedFiler service.
  316. // All implementations must embed UnimplementedSeaweedFilerServer
  317. // for forward compatibility
  318. type SeaweedFilerServer interface {
  319. LookupDirectoryEntry(context.Context, *LookupDirectoryEntryRequest) (*LookupDirectoryEntryResponse, error)
  320. ListEntries(*ListEntriesRequest, SeaweedFiler_ListEntriesServer) error
  321. CreateEntry(context.Context, *CreateEntryRequest) (*CreateEntryResponse, error)
  322. UpdateEntry(context.Context, *UpdateEntryRequest) (*UpdateEntryResponse, error)
  323. AppendToEntry(context.Context, *AppendToEntryRequest) (*AppendToEntryResponse, error)
  324. DeleteEntry(context.Context, *DeleteEntryRequest) (*DeleteEntryResponse, error)
  325. AtomicRenameEntry(context.Context, *AtomicRenameEntryRequest) (*AtomicRenameEntryResponse, error)
  326. StreamRenameEntry(*StreamRenameEntryRequest, SeaweedFiler_StreamRenameEntryServer) error
  327. AssignVolume(context.Context, *AssignVolumeRequest) (*AssignVolumeResponse, error)
  328. LookupVolume(context.Context, *LookupVolumeRequest) (*LookupVolumeResponse, error)
  329. CollectionList(context.Context, *CollectionListRequest) (*CollectionListResponse, error)
  330. DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error)
  331. Statistics(context.Context, *StatisticsRequest) (*StatisticsResponse, error)
  332. Ping(context.Context, *PingRequest) (*PingResponse, error)
  333. GetFilerConfiguration(context.Context, *GetFilerConfigurationRequest) (*GetFilerConfigurationResponse, error)
  334. SubscribeMetadata(*SubscribeMetadataRequest, SeaweedFiler_SubscribeMetadataServer) error
  335. SubscribeLocalMetadata(*SubscribeMetadataRequest, SeaweedFiler_SubscribeLocalMetadataServer) error
  336. KvGet(context.Context, *KvGetRequest) (*KvGetResponse, error)
  337. KvPut(context.Context, *KvPutRequest) (*KvPutResponse, error)
  338. CacheRemoteObjectToLocalCluster(context.Context, *CacheRemoteObjectToLocalClusterRequest) (*CacheRemoteObjectToLocalClusterResponse, error)
  339. Lock(context.Context, *LockRequest) (*LockResponse, error)
  340. Unlock(context.Context, *UnlockRequest) (*UnlockResponse, error)
  341. TransferLocks(context.Context, *TransferLocksRequest) (*TransferLocksResponse, error)
  342. mustEmbedUnimplementedSeaweedFilerServer()
  343. }
  344. // UnimplementedSeaweedFilerServer must be embedded to have forward compatible implementations.
  345. type UnimplementedSeaweedFilerServer struct {
  346. }
  347. func (UnimplementedSeaweedFilerServer) LookupDirectoryEntry(context.Context, *LookupDirectoryEntryRequest) (*LookupDirectoryEntryResponse, error) {
  348. return nil, status.Errorf(codes.Unimplemented, "method LookupDirectoryEntry not implemented")
  349. }
  350. func (UnimplementedSeaweedFilerServer) ListEntries(*ListEntriesRequest, SeaweedFiler_ListEntriesServer) error {
  351. return status.Errorf(codes.Unimplemented, "method ListEntries not implemented")
  352. }
  353. func (UnimplementedSeaweedFilerServer) CreateEntry(context.Context, *CreateEntryRequest) (*CreateEntryResponse, error) {
  354. return nil, status.Errorf(codes.Unimplemented, "method CreateEntry not implemented")
  355. }
  356. func (UnimplementedSeaweedFilerServer) UpdateEntry(context.Context, *UpdateEntryRequest) (*UpdateEntryResponse, error) {
  357. return nil, status.Errorf(codes.Unimplemented, "method UpdateEntry not implemented")
  358. }
  359. func (UnimplementedSeaweedFilerServer) AppendToEntry(context.Context, *AppendToEntryRequest) (*AppendToEntryResponse, error) {
  360. return nil, status.Errorf(codes.Unimplemented, "method AppendToEntry not implemented")
  361. }
  362. func (UnimplementedSeaweedFilerServer) DeleteEntry(context.Context, *DeleteEntryRequest) (*DeleteEntryResponse, error) {
  363. return nil, status.Errorf(codes.Unimplemented, "method DeleteEntry not implemented")
  364. }
  365. func (UnimplementedSeaweedFilerServer) AtomicRenameEntry(context.Context, *AtomicRenameEntryRequest) (*AtomicRenameEntryResponse, error) {
  366. return nil, status.Errorf(codes.Unimplemented, "method AtomicRenameEntry not implemented")
  367. }
  368. func (UnimplementedSeaweedFilerServer) StreamRenameEntry(*StreamRenameEntryRequest, SeaweedFiler_StreamRenameEntryServer) error {
  369. return status.Errorf(codes.Unimplemented, "method StreamRenameEntry not implemented")
  370. }
  371. func (UnimplementedSeaweedFilerServer) AssignVolume(context.Context, *AssignVolumeRequest) (*AssignVolumeResponse, error) {
  372. return nil, status.Errorf(codes.Unimplemented, "method AssignVolume not implemented")
  373. }
  374. func (UnimplementedSeaweedFilerServer) LookupVolume(context.Context, *LookupVolumeRequest) (*LookupVolumeResponse, error) {
  375. return nil, status.Errorf(codes.Unimplemented, "method LookupVolume not implemented")
  376. }
  377. func (UnimplementedSeaweedFilerServer) CollectionList(context.Context, *CollectionListRequest) (*CollectionListResponse, error) {
  378. return nil, status.Errorf(codes.Unimplemented, "method CollectionList not implemented")
  379. }
  380. func (UnimplementedSeaweedFilerServer) DeleteCollection(context.Context, *DeleteCollectionRequest) (*DeleteCollectionResponse, error) {
  381. return nil, status.Errorf(codes.Unimplemented, "method DeleteCollection not implemented")
  382. }
  383. func (UnimplementedSeaweedFilerServer) Statistics(context.Context, *StatisticsRequest) (*StatisticsResponse, error) {
  384. return nil, status.Errorf(codes.Unimplemented, "method Statistics not implemented")
  385. }
  386. func (UnimplementedSeaweedFilerServer) Ping(context.Context, *PingRequest) (*PingResponse, error) {
  387. return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented")
  388. }
  389. func (UnimplementedSeaweedFilerServer) GetFilerConfiguration(context.Context, *GetFilerConfigurationRequest) (*GetFilerConfigurationResponse, error) {
  390. return nil, status.Errorf(codes.Unimplemented, "method GetFilerConfiguration not implemented")
  391. }
  392. func (UnimplementedSeaweedFilerServer) SubscribeMetadata(*SubscribeMetadataRequest, SeaweedFiler_SubscribeMetadataServer) error {
  393. return status.Errorf(codes.Unimplemented, "method SubscribeMetadata not implemented")
  394. }
  395. func (UnimplementedSeaweedFilerServer) SubscribeLocalMetadata(*SubscribeMetadataRequest, SeaweedFiler_SubscribeLocalMetadataServer) error {
  396. return status.Errorf(codes.Unimplemented, "method SubscribeLocalMetadata not implemented")
  397. }
  398. func (UnimplementedSeaweedFilerServer) KvGet(context.Context, *KvGetRequest) (*KvGetResponse, error) {
  399. return nil, status.Errorf(codes.Unimplemented, "method KvGet not implemented")
  400. }
  401. func (UnimplementedSeaweedFilerServer) KvPut(context.Context, *KvPutRequest) (*KvPutResponse, error) {
  402. return nil, status.Errorf(codes.Unimplemented, "method KvPut not implemented")
  403. }
  404. func (UnimplementedSeaweedFilerServer) CacheRemoteObjectToLocalCluster(context.Context, *CacheRemoteObjectToLocalClusterRequest) (*CacheRemoteObjectToLocalClusterResponse, error) {
  405. return nil, status.Errorf(codes.Unimplemented, "method CacheRemoteObjectToLocalCluster not implemented")
  406. }
  407. func (UnimplementedSeaweedFilerServer) Lock(context.Context, *LockRequest) (*LockResponse, error) {
  408. return nil, status.Errorf(codes.Unimplemented, "method Lock not implemented")
  409. }
  410. func (UnimplementedSeaweedFilerServer) Unlock(context.Context, *UnlockRequest) (*UnlockResponse, error) {
  411. return nil, status.Errorf(codes.Unimplemented, "method Unlock not implemented")
  412. }
  413. func (UnimplementedSeaweedFilerServer) TransferLocks(context.Context, *TransferLocksRequest) (*TransferLocksResponse, error) {
  414. return nil, status.Errorf(codes.Unimplemented, "method TransferLocks not implemented")
  415. }
  416. func (UnimplementedSeaweedFilerServer) mustEmbedUnimplementedSeaweedFilerServer() {}
  417. // UnsafeSeaweedFilerServer may be embedded to opt out of forward compatibility for this service.
  418. // Use of this interface is not recommended, as added methods to SeaweedFilerServer will
  419. // result in compilation errors.
  420. type UnsafeSeaweedFilerServer interface {
  421. mustEmbedUnimplementedSeaweedFilerServer()
  422. }
  423. func RegisterSeaweedFilerServer(s grpc.ServiceRegistrar, srv SeaweedFilerServer) {
  424. s.RegisterService(&SeaweedFiler_ServiceDesc, srv)
  425. }
  426. func _SeaweedFiler_LookupDirectoryEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  427. in := new(LookupDirectoryEntryRequest)
  428. if err := dec(in); err != nil {
  429. return nil, err
  430. }
  431. if interceptor == nil {
  432. return srv.(SeaweedFilerServer).LookupDirectoryEntry(ctx, in)
  433. }
  434. info := &grpc.UnaryServerInfo{
  435. Server: srv,
  436. FullMethod: "/filer_pb.SeaweedFiler/LookupDirectoryEntry",
  437. }
  438. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  439. return srv.(SeaweedFilerServer).LookupDirectoryEntry(ctx, req.(*LookupDirectoryEntryRequest))
  440. }
  441. return interceptor(ctx, in, info, handler)
  442. }
  443. func _SeaweedFiler_ListEntries_Handler(srv interface{}, stream grpc.ServerStream) error {
  444. m := new(ListEntriesRequest)
  445. if err := stream.RecvMsg(m); err != nil {
  446. return err
  447. }
  448. return srv.(SeaweedFilerServer).ListEntries(m, &seaweedFilerListEntriesServer{stream})
  449. }
  450. type SeaweedFiler_ListEntriesServer interface {
  451. Send(*ListEntriesResponse) error
  452. grpc.ServerStream
  453. }
  454. type seaweedFilerListEntriesServer struct {
  455. grpc.ServerStream
  456. }
  457. func (x *seaweedFilerListEntriesServer) Send(m *ListEntriesResponse) error {
  458. return x.ServerStream.SendMsg(m)
  459. }
  460. func _SeaweedFiler_CreateEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  461. in := new(CreateEntryRequest)
  462. if err := dec(in); err != nil {
  463. return nil, err
  464. }
  465. if interceptor == nil {
  466. return srv.(SeaweedFilerServer).CreateEntry(ctx, in)
  467. }
  468. info := &grpc.UnaryServerInfo{
  469. Server: srv,
  470. FullMethod: "/filer_pb.SeaweedFiler/CreateEntry",
  471. }
  472. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  473. return srv.(SeaweedFilerServer).CreateEntry(ctx, req.(*CreateEntryRequest))
  474. }
  475. return interceptor(ctx, in, info, handler)
  476. }
  477. func _SeaweedFiler_UpdateEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  478. in := new(UpdateEntryRequest)
  479. if err := dec(in); err != nil {
  480. return nil, err
  481. }
  482. if interceptor == nil {
  483. return srv.(SeaweedFilerServer).UpdateEntry(ctx, in)
  484. }
  485. info := &grpc.UnaryServerInfo{
  486. Server: srv,
  487. FullMethod: "/filer_pb.SeaweedFiler/UpdateEntry",
  488. }
  489. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  490. return srv.(SeaweedFilerServer).UpdateEntry(ctx, req.(*UpdateEntryRequest))
  491. }
  492. return interceptor(ctx, in, info, handler)
  493. }
  494. func _SeaweedFiler_AppendToEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  495. in := new(AppendToEntryRequest)
  496. if err := dec(in); err != nil {
  497. return nil, err
  498. }
  499. if interceptor == nil {
  500. return srv.(SeaweedFilerServer).AppendToEntry(ctx, in)
  501. }
  502. info := &grpc.UnaryServerInfo{
  503. Server: srv,
  504. FullMethod: "/filer_pb.SeaweedFiler/AppendToEntry",
  505. }
  506. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  507. return srv.(SeaweedFilerServer).AppendToEntry(ctx, req.(*AppendToEntryRequest))
  508. }
  509. return interceptor(ctx, in, info, handler)
  510. }
  511. func _SeaweedFiler_DeleteEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  512. in := new(DeleteEntryRequest)
  513. if err := dec(in); err != nil {
  514. return nil, err
  515. }
  516. if interceptor == nil {
  517. return srv.(SeaweedFilerServer).DeleteEntry(ctx, in)
  518. }
  519. info := &grpc.UnaryServerInfo{
  520. Server: srv,
  521. FullMethod: "/filer_pb.SeaweedFiler/DeleteEntry",
  522. }
  523. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  524. return srv.(SeaweedFilerServer).DeleteEntry(ctx, req.(*DeleteEntryRequest))
  525. }
  526. return interceptor(ctx, in, info, handler)
  527. }
  528. func _SeaweedFiler_AtomicRenameEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  529. in := new(AtomicRenameEntryRequest)
  530. if err := dec(in); err != nil {
  531. return nil, err
  532. }
  533. if interceptor == nil {
  534. return srv.(SeaweedFilerServer).AtomicRenameEntry(ctx, in)
  535. }
  536. info := &grpc.UnaryServerInfo{
  537. Server: srv,
  538. FullMethod: "/filer_pb.SeaweedFiler/AtomicRenameEntry",
  539. }
  540. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  541. return srv.(SeaweedFilerServer).AtomicRenameEntry(ctx, req.(*AtomicRenameEntryRequest))
  542. }
  543. return interceptor(ctx, in, info, handler)
  544. }
  545. func _SeaweedFiler_StreamRenameEntry_Handler(srv interface{}, stream grpc.ServerStream) error {
  546. m := new(StreamRenameEntryRequest)
  547. if err := stream.RecvMsg(m); err != nil {
  548. return err
  549. }
  550. return srv.(SeaweedFilerServer).StreamRenameEntry(m, &seaweedFilerStreamRenameEntryServer{stream})
  551. }
  552. type SeaweedFiler_StreamRenameEntryServer interface {
  553. Send(*StreamRenameEntryResponse) error
  554. grpc.ServerStream
  555. }
  556. type seaweedFilerStreamRenameEntryServer struct {
  557. grpc.ServerStream
  558. }
  559. func (x *seaweedFilerStreamRenameEntryServer) Send(m *StreamRenameEntryResponse) error {
  560. return x.ServerStream.SendMsg(m)
  561. }
  562. func _SeaweedFiler_AssignVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  563. in := new(AssignVolumeRequest)
  564. if err := dec(in); err != nil {
  565. return nil, err
  566. }
  567. if interceptor == nil {
  568. return srv.(SeaweedFilerServer).AssignVolume(ctx, in)
  569. }
  570. info := &grpc.UnaryServerInfo{
  571. Server: srv,
  572. FullMethod: "/filer_pb.SeaweedFiler/AssignVolume",
  573. }
  574. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  575. return srv.(SeaweedFilerServer).AssignVolume(ctx, req.(*AssignVolumeRequest))
  576. }
  577. return interceptor(ctx, in, info, handler)
  578. }
  579. func _SeaweedFiler_LookupVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  580. in := new(LookupVolumeRequest)
  581. if err := dec(in); err != nil {
  582. return nil, err
  583. }
  584. if interceptor == nil {
  585. return srv.(SeaweedFilerServer).LookupVolume(ctx, in)
  586. }
  587. info := &grpc.UnaryServerInfo{
  588. Server: srv,
  589. FullMethod: "/filer_pb.SeaweedFiler/LookupVolume",
  590. }
  591. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  592. return srv.(SeaweedFilerServer).LookupVolume(ctx, req.(*LookupVolumeRequest))
  593. }
  594. return interceptor(ctx, in, info, handler)
  595. }
  596. func _SeaweedFiler_CollectionList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  597. in := new(CollectionListRequest)
  598. if err := dec(in); err != nil {
  599. return nil, err
  600. }
  601. if interceptor == nil {
  602. return srv.(SeaweedFilerServer).CollectionList(ctx, in)
  603. }
  604. info := &grpc.UnaryServerInfo{
  605. Server: srv,
  606. FullMethod: "/filer_pb.SeaweedFiler/CollectionList",
  607. }
  608. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  609. return srv.(SeaweedFilerServer).CollectionList(ctx, req.(*CollectionListRequest))
  610. }
  611. return interceptor(ctx, in, info, handler)
  612. }
  613. func _SeaweedFiler_DeleteCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  614. in := new(DeleteCollectionRequest)
  615. if err := dec(in); err != nil {
  616. return nil, err
  617. }
  618. if interceptor == nil {
  619. return srv.(SeaweedFilerServer).DeleteCollection(ctx, in)
  620. }
  621. info := &grpc.UnaryServerInfo{
  622. Server: srv,
  623. FullMethod: "/filer_pb.SeaweedFiler/DeleteCollection",
  624. }
  625. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  626. return srv.(SeaweedFilerServer).DeleteCollection(ctx, req.(*DeleteCollectionRequest))
  627. }
  628. return interceptor(ctx, in, info, handler)
  629. }
  630. func _SeaweedFiler_Statistics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  631. in := new(StatisticsRequest)
  632. if err := dec(in); err != nil {
  633. return nil, err
  634. }
  635. if interceptor == nil {
  636. return srv.(SeaweedFilerServer).Statistics(ctx, in)
  637. }
  638. info := &grpc.UnaryServerInfo{
  639. Server: srv,
  640. FullMethod: "/filer_pb.SeaweedFiler/Statistics",
  641. }
  642. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  643. return srv.(SeaweedFilerServer).Statistics(ctx, req.(*StatisticsRequest))
  644. }
  645. return interceptor(ctx, in, info, handler)
  646. }
  647. func _SeaweedFiler_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  648. in := new(PingRequest)
  649. if err := dec(in); err != nil {
  650. return nil, err
  651. }
  652. if interceptor == nil {
  653. return srv.(SeaweedFilerServer).Ping(ctx, in)
  654. }
  655. info := &grpc.UnaryServerInfo{
  656. Server: srv,
  657. FullMethod: "/filer_pb.SeaweedFiler/Ping",
  658. }
  659. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  660. return srv.(SeaweedFilerServer).Ping(ctx, req.(*PingRequest))
  661. }
  662. return interceptor(ctx, in, info, handler)
  663. }
  664. func _SeaweedFiler_GetFilerConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  665. in := new(GetFilerConfigurationRequest)
  666. if err := dec(in); err != nil {
  667. return nil, err
  668. }
  669. if interceptor == nil {
  670. return srv.(SeaweedFilerServer).GetFilerConfiguration(ctx, in)
  671. }
  672. info := &grpc.UnaryServerInfo{
  673. Server: srv,
  674. FullMethod: "/filer_pb.SeaweedFiler/GetFilerConfiguration",
  675. }
  676. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  677. return srv.(SeaweedFilerServer).GetFilerConfiguration(ctx, req.(*GetFilerConfigurationRequest))
  678. }
  679. return interceptor(ctx, in, info, handler)
  680. }
  681. func _SeaweedFiler_SubscribeMetadata_Handler(srv interface{}, stream grpc.ServerStream) error {
  682. m := new(SubscribeMetadataRequest)
  683. if err := stream.RecvMsg(m); err != nil {
  684. return err
  685. }
  686. return srv.(SeaweedFilerServer).SubscribeMetadata(m, &seaweedFilerSubscribeMetadataServer{stream})
  687. }
  688. type SeaweedFiler_SubscribeMetadataServer interface {
  689. Send(*SubscribeMetadataResponse) error
  690. grpc.ServerStream
  691. }
  692. type seaweedFilerSubscribeMetadataServer struct {
  693. grpc.ServerStream
  694. }
  695. func (x *seaweedFilerSubscribeMetadataServer) Send(m *SubscribeMetadataResponse) error {
  696. return x.ServerStream.SendMsg(m)
  697. }
  698. func _SeaweedFiler_SubscribeLocalMetadata_Handler(srv interface{}, stream grpc.ServerStream) error {
  699. m := new(SubscribeMetadataRequest)
  700. if err := stream.RecvMsg(m); err != nil {
  701. return err
  702. }
  703. return srv.(SeaweedFilerServer).SubscribeLocalMetadata(m, &seaweedFilerSubscribeLocalMetadataServer{stream})
  704. }
  705. type SeaweedFiler_SubscribeLocalMetadataServer interface {
  706. Send(*SubscribeMetadataResponse) error
  707. grpc.ServerStream
  708. }
  709. type seaweedFilerSubscribeLocalMetadataServer struct {
  710. grpc.ServerStream
  711. }
  712. func (x *seaweedFilerSubscribeLocalMetadataServer) Send(m *SubscribeMetadataResponse) error {
  713. return x.ServerStream.SendMsg(m)
  714. }
  715. func _SeaweedFiler_KvGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  716. in := new(KvGetRequest)
  717. if err := dec(in); err != nil {
  718. return nil, err
  719. }
  720. if interceptor == nil {
  721. return srv.(SeaweedFilerServer).KvGet(ctx, in)
  722. }
  723. info := &grpc.UnaryServerInfo{
  724. Server: srv,
  725. FullMethod: "/filer_pb.SeaweedFiler/KvGet",
  726. }
  727. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  728. return srv.(SeaweedFilerServer).KvGet(ctx, req.(*KvGetRequest))
  729. }
  730. return interceptor(ctx, in, info, handler)
  731. }
  732. func _SeaweedFiler_KvPut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  733. in := new(KvPutRequest)
  734. if err := dec(in); err != nil {
  735. return nil, err
  736. }
  737. if interceptor == nil {
  738. return srv.(SeaweedFilerServer).KvPut(ctx, in)
  739. }
  740. info := &grpc.UnaryServerInfo{
  741. Server: srv,
  742. FullMethod: "/filer_pb.SeaweedFiler/KvPut",
  743. }
  744. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  745. return srv.(SeaweedFilerServer).KvPut(ctx, req.(*KvPutRequest))
  746. }
  747. return interceptor(ctx, in, info, handler)
  748. }
  749. func _SeaweedFiler_CacheRemoteObjectToLocalCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  750. in := new(CacheRemoteObjectToLocalClusterRequest)
  751. if err := dec(in); err != nil {
  752. return nil, err
  753. }
  754. if interceptor == nil {
  755. return srv.(SeaweedFilerServer).CacheRemoteObjectToLocalCluster(ctx, in)
  756. }
  757. info := &grpc.UnaryServerInfo{
  758. Server: srv,
  759. FullMethod: "/filer_pb.SeaweedFiler/CacheRemoteObjectToLocalCluster",
  760. }
  761. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  762. return srv.(SeaweedFilerServer).CacheRemoteObjectToLocalCluster(ctx, req.(*CacheRemoteObjectToLocalClusterRequest))
  763. }
  764. return interceptor(ctx, in, info, handler)
  765. }
  766. func _SeaweedFiler_Lock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  767. in := new(LockRequest)
  768. if err := dec(in); err != nil {
  769. return nil, err
  770. }
  771. if interceptor == nil {
  772. return srv.(SeaweedFilerServer).Lock(ctx, in)
  773. }
  774. info := &grpc.UnaryServerInfo{
  775. Server: srv,
  776. FullMethod: "/filer_pb.SeaweedFiler/Lock",
  777. }
  778. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  779. return srv.(SeaweedFilerServer).Lock(ctx, req.(*LockRequest))
  780. }
  781. return interceptor(ctx, in, info, handler)
  782. }
  783. func _SeaweedFiler_Unlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  784. in := new(UnlockRequest)
  785. if err := dec(in); err != nil {
  786. return nil, err
  787. }
  788. if interceptor == nil {
  789. return srv.(SeaweedFilerServer).Unlock(ctx, in)
  790. }
  791. info := &grpc.UnaryServerInfo{
  792. Server: srv,
  793. FullMethod: "/filer_pb.SeaweedFiler/Unlock",
  794. }
  795. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  796. return srv.(SeaweedFilerServer).Unlock(ctx, req.(*UnlockRequest))
  797. }
  798. return interceptor(ctx, in, info, handler)
  799. }
  800. func _SeaweedFiler_TransferLocks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  801. in := new(TransferLocksRequest)
  802. if err := dec(in); err != nil {
  803. return nil, err
  804. }
  805. if interceptor == nil {
  806. return srv.(SeaweedFilerServer).TransferLocks(ctx, in)
  807. }
  808. info := &grpc.UnaryServerInfo{
  809. Server: srv,
  810. FullMethod: "/filer_pb.SeaweedFiler/TransferLocks",
  811. }
  812. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  813. return srv.(SeaweedFilerServer).TransferLocks(ctx, req.(*TransferLocksRequest))
  814. }
  815. return interceptor(ctx, in, info, handler)
  816. }
  817. // SeaweedFiler_ServiceDesc is the grpc.ServiceDesc for SeaweedFiler service.
  818. // It's only intended for direct use with grpc.RegisterService,
  819. // and not to be introspected or modified (even as a copy)
  820. var SeaweedFiler_ServiceDesc = grpc.ServiceDesc{
  821. ServiceName: "filer_pb.SeaweedFiler",
  822. HandlerType: (*SeaweedFilerServer)(nil),
  823. Methods: []grpc.MethodDesc{
  824. {
  825. MethodName: "LookupDirectoryEntry",
  826. Handler: _SeaweedFiler_LookupDirectoryEntry_Handler,
  827. },
  828. {
  829. MethodName: "CreateEntry",
  830. Handler: _SeaweedFiler_CreateEntry_Handler,
  831. },
  832. {
  833. MethodName: "UpdateEntry",
  834. Handler: _SeaweedFiler_UpdateEntry_Handler,
  835. },
  836. {
  837. MethodName: "AppendToEntry",
  838. Handler: _SeaweedFiler_AppendToEntry_Handler,
  839. },
  840. {
  841. MethodName: "DeleteEntry",
  842. Handler: _SeaweedFiler_DeleteEntry_Handler,
  843. },
  844. {
  845. MethodName: "AtomicRenameEntry",
  846. Handler: _SeaweedFiler_AtomicRenameEntry_Handler,
  847. },
  848. {
  849. MethodName: "AssignVolume",
  850. Handler: _SeaweedFiler_AssignVolume_Handler,
  851. },
  852. {
  853. MethodName: "LookupVolume",
  854. Handler: _SeaweedFiler_LookupVolume_Handler,
  855. },
  856. {
  857. MethodName: "CollectionList",
  858. Handler: _SeaweedFiler_CollectionList_Handler,
  859. },
  860. {
  861. MethodName: "DeleteCollection",
  862. Handler: _SeaweedFiler_DeleteCollection_Handler,
  863. },
  864. {
  865. MethodName: "Statistics",
  866. Handler: _SeaweedFiler_Statistics_Handler,
  867. },
  868. {
  869. MethodName: "Ping",
  870. Handler: _SeaweedFiler_Ping_Handler,
  871. },
  872. {
  873. MethodName: "GetFilerConfiguration",
  874. Handler: _SeaweedFiler_GetFilerConfiguration_Handler,
  875. },
  876. {
  877. MethodName: "KvGet",
  878. Handler: _SeaweedFiler_KvGet_Handler,
  879. },
  880. {
  881. MethodName: "KvPut",
  882. Handler: _SeaweedFiler_KvPut_Handler,
  883. },
  884. {
  885. MethodName: "CacheRemoteObjectToLocalCluster",
  886. Handler: _SeaweedFiler_CacheRemoteObjectToLocalCluster_Handler,
  887. },
  888. {
  889. MethodName: "Lock",
  890. Handler: _SeaweedFiler_Lock_Handler,
  891. },
  892. {
  893. MethodName: "Unlock",
  894. Handler: _SeaweedFiler_Unlock_Handler,
  895. },
  896. {
  897. MethodName: "TransferLocks",
  898. Handler: _SeaweedFiler_TransferLocks_Handler,
  899. },
  900. },
  901. Streams: []grpc.StreamDesc{
  902. {
  903. StreamName: "ListEntries",
  904. Handler: _SeaweedFiler_ListEntries_Handler,
  905. ServerStreams: true,
  906. },
  907. {
  908. StreamName: "StreamRenameEntry",
  909. Handler: _SeaweedFiler_StreamRenameEntry_Handler,
  910. ServerStreams: true,
  911. },
  912. {
  913. StreamName: "SubscribeMetadata",
  914. Handler: _SeaweedFiler_SubscribeMetadata_Handler,
  915. ServerStreams: true,
  916. },
  917. {
  918. StreamName: "SubscribeLocalMetadata",
  919. Handler: _SeaweedFiler_SubscribeLocalMetadata_Handler,
  920. ServerStreams: true,
  921. },
  922. },
  923. Metadata: "filer.proto",
  924. }