deploy_grpc.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. package apis
  3. import (
  4. context "context"
  5. grpc "google.golang.org/grpc"
  6. codes "google.golang.org/grpc/codes"
  7. status "google.golang.org/grpc/status"
  8. )
  9. // This is a compile-time assertion to ensure that this generated file
  10. // is compatible with the grpc package it is being compiled against.
  11. const _ = grpc.SupportPackageIsVersion7
  12. // DeployAgentClient is the client API for DeployAgent service.
  13. //
  14. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  15. type DeployAgentClient interface {
  16. DeployGuestFs(ctx context.Context, in *DeployParams, opts ...grpc.CallOption) (*DeployGuestFsResponse, error)
  17. ResizeFs(ctx context.Context, in *ResizeFsParams, opts ...grpc.CallOption) (*Empty, error)
  18. FormatFs(ctx context.Context, in *FormatFsParams, opts ...grpc.CallOption) (*Empty, error)
  19. SaveToGlance(ctx context.Context, in *SaveToGlanceParams, opts ...grpc.CallOption) (*SaveToGlanceResponse, error)
  20. ProbeImageInfo(ctx context.Context, in *ProbeImageInfoPramas, opts ...grpc.CallOption) (*ImageInfo, error)
  21. ConnectEsxiDisks(ctx context.Context, in *ConnectEsxiDisksParams, opts ...grpc.CallOption) (*EsxiDisksConnectionInfo, error)
  22. DisconnectEsxiDisks(ctx context.Context, in *EsxiDisksConnectionInfo, opts ...grpc.CallOption) (*Empty, error)
  23. SetOvmfBootOrder(ctx context.Context, in *OvmfBootOrderParams, opts ...grpc.CallOption) (*Empty, error)
  24. }
  25. type deployAgentClient struct {
  26. cc grpc.ClientConnInterface
  27. }
  28. func NewDeployAgentClient(cc grpc.ClientConnInterface) DeployAgentClient {
  29. return &deployAgentClient{cc}
  30. }
  31. func (c *deployAgentClient) DeployGuestFs(ctx context.Context, in *DeployParams, opts ...grpc.CallOption) (*DeployGuestFsResponse, error) {
  32. out := new(DeployGuestFsResponse)
  33. err := c.cc.Invoke(ctx, "/apis.DeployAgent/DeployGuestFs", in, out, opts...)
  34. if err != nil {
  35. return nil, err
  36. }
  37. return out, nil
  38. }
  39. func (c *deployAgentClient) ResizeFs(ctx context.Context, in *ResizeFsParams, opts ...grpc.CallOption) (*Empty, error) {
  40. out := new(Empty)
  41. err := c.cc.Invoke(ctx, "/apis.DeployAgent/ResizeFs", in, out, opts...)
  42. if err != nil {
  43. return nil, err
  44. }
  45. return out, nil
  46. }
  47. func (c *deployAgentClient) FormatFs(ctx context.Context, in *FormatFsParams, opts ...grpc.CallOption) (*Empty, error) {
  48. out := new(Empty)
  49. err := c.cc.Invoke(ctx, "/apis.DeployAgent/FormatFs", in, out, opts...)
  50. if err != nil {
  51. return nil, err
  52. }
  53. return out, nil
  54. }
  55. func (c *deployAgentClient) SaveToGlance(ctx context.Context, in *SaveToGlanceParams, opts ...grpc.CallOption) (*SaveToGlanceResponse, error) {
  56. out := new(SaveToGlanceResponse)
  57. err := c.cc.Invoke(ctx, "/apis.DeployAgent/SaveToGlance", in, out, opts...)
  58. if err != nil {
  59. return nil, err
  60. }
  61. return out, nil
  62. }
  63. func (c *deployAgentClient) ProbeImageInfo(ctx context.Context, in *ProbeImageInfoPramas, opts ...grpc.CallOption) (*ImageInfo, error) {
  64. out := new(ImageInfo)
  65. err := c.cc.Invoke(ctx, "/apis.DeployAgent/ProbeImageInfo", in, out, opts...)
  66. if err != nil {
  67. return nil, err
  68. }
  69. return out, nil
  70. }
  71. func (c *deployAgentClient) ConnectEsxiDisks(ctx context.Context, in *ConnectEsxiDisksParams, opts ...grpc.CallOption) (*EsxiDisksConnectionInfo, error) {
  72. out := new(EsxiDisksConnectionInfo)
  73. err := c.cc.Invoke(ctx, "/apis.DeployAgent/ConnectEsxiDisks", in, out, opts...)
  74. if err != nil {
  75. return nil, err
  76. }
  77. return out, nil
  78. }
  79. func (c *deployAgentClient) DisconnectEsxiDisks(ctx context.Context, in *EsxiDisksConnectionInfo, opts ...grpc.CallOption) (*Empty, error) {
  80. out := new(Empty)
  81. err := c.cc.Invoke(ctx, "/apis.DeployAgent/DisconnectEsxiDisks", in, out, opts...)
  82. if err != nil {
  83. return nil, err
  84. }
  85. return out, nil
  86. }
  87. func (c *deployAgentClient) SetOvmfBootOrder(ctx context.Context, in *OvmfBootOrderParams, opts ...grpc.CallOption) (*Empty, error) {
  88. out := new(Empty)
  89. err := c.cc.Invoke(ctx, "/apis.DeployAgent/SetOvmfBootOrder", in, out, opts...)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return out, nil
  94. }
  95. // DeployAgentServer is the server API for DeployAgent service.
  96. // All implementations must embed UnimplementedDeployAgentServer
  97. // for forward compatibility
  98. type DeployAgentServer interface {
  99. DeployGuestFs(context.Context, *DeployParams) (*DeployGuestFsResponse, error)
  100. ResizeFs(context.Context, *ResizeFsParams) (*Empty, error)
  101. FormatFs(context.Context, *FormatFsParams) (*Empty, error)
  102. SaveToGlance(context.Context, *SaveToGlanceParams) (*SaveToGlanceResponse, error)
  103. ProbeImageInfo(context.Context, *ProbeImageInfoPramas) (*ImageInfo, error)
  104. ConnectEsxiDisks(context.Context, *ConnectEsxiDisksParams) (*EsxiDisksConnectionInfo, error)
  105. DisconnectEsxiDisks(context.Context, *EsxiDisksConnectionInfo) (*Empty, error)
  106. SetOvmfBootOrder(context.Context, *OvmfBootOrderParams) (*Empty, error)
  107. mustEmbedUnimplementedDeployAgentServer()
  108. }
  109. // UnimplementedDeployAgentServer must be embedded to have forward compatible implementations.
  110. type UnimplementedDeployAgentServer struct {
  111. }
  112. func (UnimplementedDeployAgentServer) DeployGuestFs(context.Context, *DeployParams) (*DeployGuestFsResponse, error) {
  113. return nil, status.Errorf(codes.Unimplemented, "method DeployGuestFs not implemented")
  114. }
  115. func (UnimplementedDeployAgentServer) ResizeFs(context.Context, *ResizeFsParams) (*Empty, error) {
  116. return nil, status.Errorf(codes.Unimplemented, "method ResizeFs not implemented")
  117. }
  118. func (UnimplementedDeployAgentServer) FormatFs(context.Context, *FormatFsParams) (*Empty, error) {
  119. return nil, status.Errorf(codes.Unimplemented, "method FormatFs not implemented")
  120. }
  121. func (UnimplementedDeployAgentServer) SaveToGlance(context.Context, *SaveToGlanceParams) (*SaveToGlanceResponse, error) {
  122. return nil, status.Errorf(codes.Unimplemented, "method SaveToGlance not implemented")
  123. }
  124. func (UnimplementedDeployAgentServer) ProbeImageInfo(context.Context, *ProbeImageInfoPramas) (*ImageInfo, error) {
  125. return nil, status.Errorf(codes.Unimplemented, "method ProbeImageInfo not implemented")
  126. }
  127. func (UnimplementedDeployAgentServer) ConnectEsxiDisks(context.Context, *ConnectEsxiDisksParams) (*EsxiDisksConnectionInfo, error) {
  128. return nil, status.Errorf(codes.Unimplemented, "method ConnectEsxiDisks not implemented")
  129. }
  130. func (UnimplementedDeployAgentServer) DisconnectEsxiDisks(context.Context, *EsxiDisksConnectionInfo) (*Empty, error) {
  131. return nil, status.Errorf(codes.Unimplemented, "method DisconnectEsxiDisks not implemented")
  132. }
  133. func (UnimplementedDeployAgentServer) SetOvmfBootOrder(context.Context, *OvmfBootOrderParams) (*Empty, error) {
  134. return nil, status.Errorf(codes.Unimplemented, "method SetOvmfBootOrder not implemented")
  135. }
  136. func (UnimplementedDeployAgentServer) mustEmbedUnimplementedDeployAgentServer() {}
  137. // UnsafeDeployAgentServer may be embedded to opt out of forward compatibility for this service.
  138. // Use of this interface is not recommended, as added methods to DeployAgentServer will
  139. // result in compilation errors.
  140. type UnsafeDeployAgentServer interface {
  141. mustEmbedUnimplementedDeployAgentServer()
  142. }
  143. func RegisterDeployAgentServer(s grpc.ServiceRegistrar, srv DeployAgentServer) {
  144. s.RegisterService(&_DeployAgent_serviceDesc, srv)
  145. }
  146. func _DeployAgent_DeployGuestFs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  147. in := new(DeployParams)
  148. if err := dec(in); err != nil {
  149. return nil, err
  150. }
  151. if interceptor == nil {
  152. return srv.(DeployAgentServer).DeployGuestFs(ctx, in)
  153. }
  154. info := &grpc.UnaryServerInfo{
  155. Server: srv,
  156. FullMethod: "/apis.DeployAgent/DeployGuestFs",
  157. }
  158. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  159. return srv.(DeployAgentServer).DeployGuestFs(ctx, req.(*DeployParams))
  160. }
  161. return interceptor(ctx, in, info, handler)
  162. }
  163. func _DeployAgent_ResizeFs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  164. in := new(ResizeFsParams)
  165. if err := dec(in); err != nil {
  166. return nil, err
  167. }
  168. if interceptor == nil {
  169. return srv.(DeployAgentServer).ResizeFs(ctx, in)
  170. }
  171. info := &grpc.UnaryServerInfo{
  172. Server: srv,
  173. FullMethod: "/apis.DeployAgent/ResizeFs",
  174. }
  175. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  176. return srv.(DeployAgentServer).ResizeFs(ctx, req.(*ResizeFsParams))
  177. }
  178. return interceptor(ctx, in, info, handler)
  179. }
  180. func _DeployAgent_FormatFs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  181. in := new(FormatFsParams)
  182. if err := dec(in); err != nil {
  183. return nil, err
  184. }
  185. if interceptor == nil {
  186. return srv.(DeployAgentServer).FormatFs(ctx, in)
  187. }
  188. info := &grpc.UnaryServerInfo{
  189. Server: srv,
  190. FullMethod: "/apis.DeployAgent/FormatFs",
  191. }
  192. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  193. return srv.(DeployAgentServer).FormatFs(ctx, req.(*FormatFsParams))
  194. }
  195. return interceptor(ctx, in, info, handler)
  196. }
  197. func _DeployAgent_SaveToGlance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  198. in := new(SaveToGlanceParams)
  199. if err := dec(in); err != nil {
  200. return nil, err
  201. }
  202. if interceptor == nil {
  203. return srv.(DeployAgentServer).SaveToGlance(ctx, in)
  204. }
  205. info := &grpc.UnaryServerInfo{
  206. Server: srv,
  207. FullMethod: "/apis.DeployAgent/SaveToGlance",
  208. }
  209. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  210. return srv.(DeployAgentServer).SaveToGlance(ctx, req.(*SaveToGlanceParams))
  211. }
  212. return interceptor(ctx, in, info, handler)
  213. }
  214. func _DeployAgent_ProbeImageInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  215. in := new(ProbeImageInfoPramas)
  216. if err := dec(in); err != nil {
  217. return nil, err
  218. }
  219. if interceptor == nil {
  220. return srv.(DeployAgentServer).ProbeImageInfo(ctx, in)
  221. }
  222. info := &grpc.UnaryServerInfo{
  223. Server: srv,
  224. FullMethod: "/apis.DeployAgent/ProbeImageInfo",
  225. }
  226. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  227. return srv.(DeployAgentServer).ProbeImageInfo(ctx, req.(*ProbeImageInfoPramas))
  228. }
  229. return interceptor(ctx, in, info, handler)
  230. }
  231. func _DeployAgent_ConnectEsxiDisks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  232. in := new(ConnectEsxiDisksParams)
  233. if err := dec(in); err != nil {
  234. return nil, err
  235. }
  236. if interceptor == nil {
  237. return srv.(DeployAgentServer).ConnectEsxiDisks(ctx, in)
  238. }
  239. info := &grpc.UnaryServerInfo{
  240. Server: srv,
  241. FullMethod: "/apis.DeployAgent/ConnectEsxiDisks",
  242. }
  243. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  244. return srv.(DeployAgentServer).ConnectEsxiDisks(ctx, req.(*ConnectEsxiDisksParams))
  245. }
  246. return interceptor(ctx, in, info, handler)
  247. }
  248. func _DeployAgent_DisconnectEsxiDisks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  249. in := new(EsxiDisksConnectionInfo)
  250. if err := dec(in); err != nil {
  251. return nil, err
  252. }
  253. if interceptor == nil {
  254. return srv.(DeployAgentServer).DisconnectEsxiDisks(ctx, in)
  255. }
  256. info := &grpc.UnaryServerInfo{
  257. Server: srv,
  258. FullMethod: "/apis.DeployAgent/DisconnectEsxiDisks",
  259. }
  260. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  261. return srv.(DeployAgentServer).DisconnectEsxiDisks(ctx, req.(*EsxiDisksConnectionInfo))
  262. }
  263. return interceptor(ctx, in, info, handler)
  264. }
  265. func _DeployAgent_SetOvmfBootOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  266. in := new(OvmfBootOrderParams)
  267. if err := dec(in); err != nil {
  268. return nil, err
  269. }
  270. if interceptor == nil {
  271. return srv.(DeployAgentServer).SetOvmfBootOrder(ctx, in)
  272. }
  273. info := &grpc.UnaryServerInfo{
  274. Server: srv,
  275. FullMethod: "/apis.DeployAgent/SetOvmfBootOrder",
  276. }
  277. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  278. return srv.(DeployAgentServer).SetOvmfBootOrder(ctx, req.(*OvmfBootOrderParams))
  279. }
  280. return interceptor(ctx, in, info, handler)
  281. }
  282. var _DeployAgent_serviceDesc = grpc.ServiceDesc{
  283. ServiceName: "apis.DeployAgent",
  284. HandlerType: (*DeployAgentServer)(nil),
  285. Methods: []grpc.MethodDesc{
  286. {
  287. MethodName: "DeployGuestFs",
  288. Handler: _DeployAgent_DeployGuestFs_Handler,
  289. },
  290. {
  291. MethodName: "ResizeFs",
  292. Handler: _DeployAgent_ResizeFs_Handler,
  293. },
  294. {
  295. MethodName: "FormatFs",
  296. Handler: _DeployAgent_FormatFs_Handler,
  297. },
  298. {
  299. MethodName: "SaveToGlance",
  300. Handler: _DeployAgent_SaveToGlance_Handler,
  301. },
  302. {
  303. MethodName: "ProbeImageInfo",
  304. Handler: _DeployAgent_ProbeImageInfo_Handler,
  305. },
  306. {
  307. MethodName: "ConnectEsxiDisks",
  308. Handler: _DeployAgent_ConnectEsxiDisks_Handler,
  309. },
  310. {
  311. MethodName: "DisconnectEsxiDisks",
  312. Handler: _DeployAgent_DisconnectEsxiDisks_Handler,
  313. },
  314. {
  315. MethodName: "SetOvmfBootOrder",
  316. Handler: _DeployAgent_SetOvmfBootOrder_Handler,
  317. },
  318. },
  319. Streams: []grpc.StreamDesc{},
  320. Metadata: "deploy.proto",
  321. }