You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

pod_grpc.pb.go 7.9 kB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.2.0
  4. // - protoc (unknown)
  5. // source: idl/pbpod/pod.proto
  6. package pbpod
  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. // PodServiceClient is the client API for PodService service.
  18. //
  19. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  20. type PodServiceClient interface {
  21. // 创建Pod
  22. CreatePod(ctx context.Context, in *CreatePodReq, opts ...grpc.CallOption) (*CreatePodResp, error)
  23. // 查询Pod明细
  24. ListPodDetail(ctx context.Context, in *ListPodDetailReq, opts ...grpc.CallOption) (*ListPodDetailResp, error)
  25. // 查询Pod全量 - 根据云类型
  26. ListPod(ctx context.Context, in *ListPodReq, opts ...grpc.CallOption) (*ListPodResp, error)
  27. // 查询所有云的Pod
  28. ListPodAll(ctx context.Context, in *ListPodAllReq, opts ...grpc.CallOption) (*ListPodResp, error)
  29. }
  30. type podServiceClient struct {
  31. cc grpc.ClientConnInterface
  32. }
  33. func NewPodServiceClient(cc grpc.ClientConnInterface) PodServiceClient {
  34. return &podServiceClient{cc}
  35. }
  36. func (c *podServiceClient) CreatePod(ctx context.Context, in *CreatePodReq, opts ...grpc.CallOption) (*CreatePodResp, error) {
  37. out := new(CreatePodResp)
  38. err := c.cc.Invoke(ctx, "/pbpod.PodService/CreatePod", in, out, opts...)
  39. if err != nil {
  40. return nil, err
  41. }
  42. return out, nil
  43. }
  44. func (c *podServiceClient) ListPodDetail(ctx context.Context, in *ListPodDetailReq, opts ...grpc.CallOption) (*ListPodDetailResp, error) {
  45. out := new(ListPodDetailResp)
  46. err := c.cc.Invoke(ctx, "/pbpod.PodService/ListPodDetail", in, out, opts...)
  47. if err != nil {
  48. return nil, err
  49. }
  50. return out, nil
  51. }
  52. func (c *podServiceClient) ListPod(ctx context.Context, in *ListPodReq, opts ...grpc.CallOption) (*ListPodResp, error) {
  53. out := new(ListPodResp)
  54. err := c.cc.Invoke(ctx, "/pbpod.PodService/ListPod", in, out, opts...)
  55. if err != nil {
  56. return nil, err
  57. }
  58. return out, nil
  59. }
  60. func (c *podServiceClient) ListPodAll(ctx context.Context, in *ListPodAllReq, opts ...grpc.CallOption) (*ListPodResp, error) {
  61. out := new(ListPodResp)
  62. err := c.cc.Invoke(ctx, "/pbpod.PodService/ListPodAll", in, out, opts...)
  63. if err != nil {
  64. return nil, err
  65. }
  66. return out, nil
  67. }
  68. // PodServiceServer is the server API for PodService service.
  69. // All implementations must embed UnimplementedPodServiceServer
  70. // for forward compatibility
  71. type PodServiceServer interface {
  72. // 创建Pod
  73. CreatePod(context.Context, *CreatePodReq) (*CreatePodResp, error)
  74. // 查询Pod明细
  75. ListPodDetail(context.Context, *ListPodDetailReq) (*ListPodDetailResp, error)
  76. // 查询Pod全量 - 根据云类型
  77. ListPod(context.Context, *ListPodReq) (*ListPodResp, error)
  78. // 查询所有云的Pod
  79. ListPodAll(context.Context, *ListPodAllReq) (*ListPodResp, error)
  80. mustEmbedUnimplementedPodServiceServer()
  81. }
  82. // UnimplementedPodServiceServer must be embedded to have forward compatible implementations.
  83. type UnimplementedPodServiceServer struct {
  84. }
  85. func (UnimplementedPodServiceServer) CreatePod(context.Context, *CreatePodReq) (*CreatePodResp, error) {
  86. return nil, status.Errorf(codes.Unimplemented, "method CreatePod not implemented")
  87. }
  88. func (UnimplementedPodServiceServer) ListPodDetail(context.Context, *ListPodDetailReq) (*ListPodDetailResp, error) {
  89. return nil, status.Errorf(codes.Unimplemented, "method ListPodDetail not implemented")
  90. }
  91. func (UnimplementedPodServiceServer) ListPod(context.Context, *ListPodReq) (*ListPodResp, error) {
  92. return nil, status.Errorf(codes.Unimplemented, "method ListPod not implemented")
  93. }
  94. func (UnimplementedPodServiceServer) ListPodAll(context.Context, *ListPodAllReq) (*ListPodResp, error) {
  95. return nil, status.Errorf(codes.Unimplemented, "method ListPodAll not implemented")
  96. }
  97. func (UnimplementedPodServiceServer) mustEmbedUnimplementedPodServiceServer() {}
  98. // UnsafePodServiceServer may be embedded to opt out of forward compatibility for this service.
  99. // Use of this interface is not recommended, as added methods to PodServiceServer will
  100. // result in compilation errors.
  101. type UnsafePodServiceServer interface {
  102. mustEmbedUnimplementedPodServiceServer()
  103. }
  104. func RegisterPodServiceServer(s grpc.ServiceRegistrar, srv PodServiceServer) {
  105. s.RegisterService(&PodService_ServiceDesc, srv)
  106. }
  107. func _PodService_CreatePod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  108. in := new(CreatePodReq)
  109. if err := dec(in); err != nil {
  110. return nil, err
  111. }
  112. if interceptor == nil {
  113. return srv.(PodServiceServer).CreatePod(ctx, in)
  114. }
  115. info := &grpc.UnaryServerInfo{
  116. Server: srv,
  117. FullMethod: "/pbpod.PodService/CreatePod",
  118. }
  119. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  120. return srv.(PodServiceServer).CreatePod(ctx, req.(*CreatePodReq))
  121. }
  122. return interceptor(ctx, in, info, handler)
  123. }
  124. func _PodService_ListPodDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  125. in := new(ListPodDetailReq)
  126. if err := dec(in); err != nil {
  127. return nil, err
  128. }
  129. if interceptor == nil {
  130. return srv.(PodServiceServer).ListPodDetail(ctx, in)
  131. }
  132. info := &grpc.UnaryServerInfo{
  133. Server: srv,
  134. FullMethod: "/pbpod.PodService/ListPodDetail",
  135. }
  136. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  137. return srv.(PodServiceServer).ListPodDetail(ctx, req.(*ListPodDetailReq))
  138. }
  139. return interceptor(ctx, in, info, handler)
  140. }
  141. func _PodService_ListPod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  142. in := new(ListPodReq)
  143. if err := dec(in); err != nil {
  144. return nil, err
  145. }
  146. if interceptor == nil {
  147. return srv.(PodServiceServer).ListPod(ctx, in)
  148. }
  149. info := &grpc.UnaryServerInfo{
  150. Server: srv,
  151. FullMethod: "/pbpod.PodService/ListPod",
  152. }
  153. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  154. return srv.(PodServiceServer).ListPod(ctx, req.(*ListPodReq))
  155. }
  156. return interceptor(ctx, in, info, handler)
  157. }
  158. func _PodService_ListPodAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  159. in := new(ListPodAllReq)
  160. if err := dec(in); err != nil {
  161. return nil, err
  162. }
  163. if interceptor == nil {
  164. return srv.(PodServiceServer).ListPodAll(ctx, in)
  165. }
  166. info := &grpc.UnaryServerInfo{
  167. Server: srv,
  168. FullMethod: "/pbpod.PodService/ListPodAll",
  169. }
  170. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  171. return srv.(PodServiceServer).ListPodAll(ctx, req.(*ListPodAllReq))
  172. }
  173. return interceptor(ctx, in, info, handler)
  174. }
  175. // PodService_ServiceDesc is the grpc.ServiceDesc for PodService service.
  176. // It's only intended for direct use with grpc.RegisterService,
  177. // and not to be introspected or modified (even as a copy)
  178. var PodService_ServiceDesc = grpc.ServiceDesc{
  179. ServiceName: "pbpod.PodService",
  180. HandlerType: (*PodServiceServer)(nil),
  181. Methods: []grpc.MethodDesc{
  182. {
  183. MethodName: "CreatePod",
  184. Handler: _PodService_CreatePod_Handler,
  185. },
  186. {
  187. MethodName: "ListPodDetail",
  188. Handler: _PodService_ListPodDetail_Handler,
  189. },
  190. {
  191. MethodName: "ListPod",
  192. Handler: _PodService_ListPod_Handler,
  193. },
  194. {
  195. MethodName: "ListPodAll",
  196. Handler: _PodService_ListPodAll_Handler,
  197. },
  198. },
  199. Streams: []grpc.StreamDesc{},
  200. Metadata: "idl/pbpod/pod.proto",
  201. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.