filer_grpc.pb.go 45 KB

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