filer_grpc.pb.go 43 KB

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