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.

921 lines
36 KiB

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