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.

898 lines
34 KiB

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