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.

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