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.

894 lines
34 KiB

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