filer_grpc.pb.go 40 KB

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