1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
8 api "git.fd.io/govpp.git/api"
9 vpe "git.fd.io/govpp.git/binapi/vpe"
13 // RPCService defines RPC service gbp.
14 type RPCService interface {
15 GbpBridgeDomainAdd(ctx context.Context, in *GbpBridgeDomainAdd) (*GbpBridgeDomainAddReply, error)
16 GbpBridgeDomainDel(ctx context.Context, in *GbpBridgeDomainDel) (*GbpBridgeDomainDelReply, error)
17 GbpBridgeDomainDump(ctx context.Context, in *GbpBridgeDomainDump) (RPCService_GbpBridgeDomainDumpClient, error)
18 GbpContractAddDel(ctx context.Context, in *GbpContractAddDel) (*GbpContractAddDelReply, error)
19 GbpContractDump(ctx context.Context, in *GbpContractDump) (RPCService_GbpContractDumpClient, error)
20 GbpEndpointAdd(ctx context.Context, in *GbpEndpointAdd) (*GbpEndpointAddReply, error)
21 GbpEndpointDel(ctx context.Context, in *GbpEndpointDel) (*GbpEndpointDelReply, error)
22 GbpEndpointDump(ctx context.Context, in *GbpEndpointDump) (RPCService_GbpEndpointDumpClient, error)
23 GbpEndpointGroupAdd(ctx context.Context, in *GbpEndpointGroupAdd) (*GbpEndpointGroupAddReply, error)
24 GbpEndpointGroupDel(ctx context.Context, in *GbpEndpointGroupDel) (*GbpEndpointGroupDelReply, error)
25 GbpEndpointGroupDump(ctx context.Context, in *GbpEndpointGroupDump) (RPCService_GbpEndpointGroupDumpClient, error)
26 GbpExtItfAddDel(ctx context.Context, in *GbpExtItfAddDel) (*GbpExtItfAddDelReply, error)
27 GbpExtItfDump(ctx context.Context, in *GbpExtItfDump) (RPCService_GbpExtItfDumpClient, error)
28 GbpRecircAddDel(ctx context.Context, in *GbpRecircAddDel) (*GbpRecircAddDelReply, error)
29 GbpRecircDump(ctx context.Context, in *GbpRecircDump) (RPCService_GbpRecircDumpClient, error)
30 GbpRouteDomainAdd(ctx context.Context, in *GbpRouteDomainAdd) (*GbpRouteDomainAddReply, error)
31 GbpRouteDomainDel(ctx context.Context, in *GbpRouteDomainDel) (*GbpRouteDomainDelReply, error)
32 GbpRouteDomainDump(ctx context.Context, in *GbpRouteDomainDump) (RPCService_GbpRouteDomainDumpClient, error)
33 GbpSubnetAddDel(ctx context.Context, in *GbpSubnetAddDel) (*GbpSubnetAddDelReply, error)
34 GbpSubnetDump(ctx context.Context, in *GbpSubnetDump) (RPCService_GbpSubnetDumpClient, error)
35 GbpVxlanTunnelAdd(ctx context.Context, in *GbpVxlanTunnelAdd) (*GbpVxlanTunnelAddReply, error)
36 GbpVxlanTunnelDel(ctx context.Context, in *GbpVxlanTunnelDel) (*GbpVxlanTunnelDelReply, error)
37 GbpVxlanTunnelDump(ctx context.Context, in *GbpVxlanTunnelDump) (RPCService_GbpVxlanTunnelDumpClient, error)
40 type serviceClient struct {
44 func NewServiceClient(conn api.Connection) RPCService {
45 return &serviceClient{conn}
48 func (c *serviceClient) GbpBridgeDomainAdd(ctx context.Context, in *GbpBridgeDomainAdd) (*GbpBridgeDomainAddReply, error) {
49 out := new(GbpBridgeDomainAddReply)
50 err := c.conn.Invoke(ctx, in, out)
57 func (c *serviceClient) GbpBridgeDomainDel(ctx context.Context, in *GbpBridgeDomainDel) (*GbpBridgeDomainDelReply, error) {
58 out := new(GbpBridgeDomainDelReply)
59 err := c.conn.Invoke(ctx, in, out)
66 func (c *serviceClient) GbpBridgeDomainDump(ctx context.Context, in *GbpBridgeDomainDump) (RPCService_GbpBridgeDomainDumpClient, error) {
67 stream, err := c.conn.NewStream(ctx)
71 x := &serviceClient_GbpBridgeDomainDumpClient{stream}
72 if err := x.Stream.SendMsg(in); err != nil {
75 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
81 type RPCService_GbpBridgeDomainDumpClient interface {
82 Recv() (*GbpBridgeDomainDetails, error)
86 type serviceClient_GbpBridgeDomainDumpClient struct {
90 func (c *serviceClient_GbpBridgeDomainDumpClient) Recv() (*GbpBridgeDomainDetails, error) {
91 msg, err := c.Stream.RecvMsg()
95 switch m := msg.(type) {
96 case *GbpBridgeDomainDetails:
98 case *vpe.ControlPingReply:
101 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
105 func (c *serviceClient) GbpContractAddDel(ctx context.Context, in *GbpContractAddDel) (*GbpContractAddDelReply, error) {
106 out := new(GbpContractAddDelReply)
107 err := c.conn.Invoke(ctx, in, out)
114 func (c *serviceClient) GbpContractDump(ctx context.Context, in *GbpContractDump) (RPCService_GbpContractDumpClient, error) {
115 stream, err := c.conn.NewStream(ctx)
119 x := &serviceClient_GbpContractDumpClient{stream}
120 if err := x.Stream.SendMsg(in); err != nil {
123 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
129 type RPCService_GbpContractDumpClient interface {
130 Recv() (*GbpContractDetails, error)
134 type serviceClient_GbpContractDumpClient struct {
138 func (c *serviceClient_GbpContractDumpClient) Recv() (*GbpContractDetails, error) {
139 msg, err := c.Stream.RecvMsg()
143 switch m := msg.(type) {
144 case *GbpContractDetails:
146 case *vpe.ControlPingReply:
149 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
153 func (c *serviceClient) GbpEndpointAdd(ctx context.Context, in *GbpEndpointAdd) (*GbpEndpointAddReply, error) {
154 out := new(GbpEndpointAddReply)
155 err := c.conn.Invoke(ctx, in, out)
162 func (c *serviceClient) GbpEndpointDel(ctx context.Context, in *GbpEndpointDel) (*GbpEndpointDelReply, error) {
163 out := new(GbpEndpointDelReply)
164 err := c.conn.Invoke(ctx, in, out)
171 func (c *serviceClient) GbpEndpointDump(ctx context.Context, in *GbpEndpointDump) (RPCService_GbpEndpointDumpClient, error) {
172 stream, err := c.conn.NewStream(ctx)
176 x := &serviceClient_GbpEndpointDumpClient{stream}
177 if err := x.Stream.SendMsg(in); err != nil {
180 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
186 type RPCService_GbpEndpointDumpClient interface {
187 Recv() (*GbpEndpointDetails, error)
191 type serviceClient_GbpEndpointDumpClient struct {
195 func (c *serviceClient_GbpEndpointDumpClient) Recv() (*GbpEndpointDetails, error) {
196 msg, err := c.Stream.RecvMsg()
200 switch m := msg.(type) {
201 case *GbpEndpointDetails:
203 case *vpe.ControlPingReply:
206 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
210 func (c *serviceClient) GbpEndpointGroupAdd(ctx context.Context, in *GbpEndpointGroupAdd) (*GbpEndpointGroupAddReply, error) {
211 out := new(GbpEndpointGroupAddReply)
212 err := c.conn.Invoke(ctx, in, out)
219 func (c *serviceClient) GbpEndpointGroupDel(ctx context.Context, in *GbpEndpointGroupDel) (*GbpEndpointGroupDelReply, error) {
220 out := new(GbpEndpointGroupDelReply)
221 err := c.conn.Invoke(ctx, in, out)
228 func (c *serviceClient) GbpEndpointGroupDump(ctx context.Context, in *GbpEndpointGroupDump) (RPCService_GbpEndpointGroupDumpClient, error) {
229 stream, err := c.conn.NewStream(ctx)
233 x := &serviceClient_GbpEndpointGroupDumpClient{stream}
234 if err := x.Stream.SendMsg(in); err != nil {
237 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
243 type RPCService_GbpEndpointGroupDumpClient interface {
244 Recv() (*GbpEndpointGroupDetails, error)
248 type serviceClient_GbpEndpointGroupDumpClient struct {
252 func (c *serviceClient_GbpEndpointGroupDumpClient) Recv() (*GbpEndpointGroupDetails, error) {
253 msg, err := c.Stream.RecvMsg()
257 switch m := msg.(type) {
258 case *GbpEndpointGroupDetails:
260 case *vpe.ControlPingReply:
263 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
267 func (c *serviceClient) GbpExtItfAddDel(ctx context.Context, in *GbpExtItfAddDel) (*GbpExtItfAddDelReply, error) {
268 out := new(GbpExtItfAddDelReply)
269 err := c.conn.Invoke(ctx, in, out)
276 func (c *serviceClient) GbpExtItfDump(ctx context.Context, in *GbpExtItfDump) (RPCService_GbpExtItfDumpClient, error) {
277 stream, err := c.conn.NewStream(ctx)
281 x := &serviceClient_GbpExtItfDumpClient{stream}
282 if err := x.Stream.SendMsg(in); err != nil {
285 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
291 type RPCService_GbpExtItfDumpClient interface {
292 Recv() (*GbpExtItfDetails, error)
296 type serviceClient_GbpExtItfDumpClient struct {
300 func (c *serviceClient_GbpExtItfDumpClient) Recv() (*GbpExtItfDetails, error) {
301 msg, err := c.Stream.RecvMsg()
305 switch m := msg.(type) {
306 case *GbpExtItfDetails:
308 case *vpe.ControlPingReply:
311 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
315 func (c *serviceClient) GbpRecircAddDel(ctx context.Context, in *GbpRecircAddDel) (*GbpRecircAddDelReply, error) {
316 out := new(GbpRecircAddDelReply)
317 err := c.conn.Invoke(ctx, in, out)
324 func (c *serviceClient) GbpRecircDump(ctx context.Context, in *GbpRecircDump) (RPCService_GbpRecircDumpClient, error) {
325 stream, err := c.conn.NewStream(ctx)
329 x := &serviceClient_GbpRecircDumpClient{stream}
330 if err := x.Stream.SendMsg(in); err != nil {
333 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
339 type RPCService_GbpRecircDumpClient interface {
340 Recv() (*GbpRecircDetails, error)
344 type serviceClient_GbpRecircDumpClient struct {
348 func (c *serviceClient_GbpRecircDumpClient) Recv() (*GbpRecircDetails, error) {
349 msg, err := c.Stream.RecvMsg()
353 switch m := msg.(type) {
354 case *GbpRecircDetails:
356 case *vpe.ControlPingReply:
359 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
363 func (c *serviceClient) GbpRouteDomainAdd(ctx context.Context, in *GbpRouteDomainAdd) (*GbpRouteDomainAddReply, error) {
364 out := new(GbpRouteDomainAddReply)
365 err := c.conn.Invoke(ctx, in, out)
372 func (c *serviceClient) GbpRouteDomainDel(ctx context.Context, in *GbpRouteDomainDel) (*GbpRouteDomainDelReply, error) {
373 out := new(GbpRouteDomainDelReply)
374 err := c.conn.Invoke(ctx, in, out)
381 func (c *serviceClient) GbpRouteDomainDump(ctx context.Context, in *GbpRouteDomainDump) (RPCService_GbpRouteDomainDumpClient, error) {
382 stream, err := c.conn.NewStream(ctx)
386 x := &serviceClient_GbpRouteDomainDumpClient{stream}
387 if err := x.Stream.SendMsg(in); err != nil {
390 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
396 type RPCService_GbpRouteDomainDumpClient interface {
397 Recv() (*GbpRouteDomainDetails, error)
401 type serviceClient_GbpRouteDomainDumpClient struct {
405 func (c *serviceClient_GbpRouteDomainDumpClient) Recv() (*GbpRouteDomainDetails, error) {
406 msg, err := c.Stream.RecvMsg()
410 switch m := msg.(type) {
411 case *GbpRouteDomainDetails:
413 case *vpe.ControlPingReply:
416 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
420 func (c *serviceClient) GbpSubnetAddDel(ctx context.Context, in *GbpSubnetAddDel) (*GbpSubnetAddDelReply, error) {
421 out := new(GbpSubnetAddDelReply)
422 err := c.conn.Invoke(ctx, in, out)
429 func (c *serviceClient) GbpSubnetDump(ctx context.Context, in *GbpSubnetDump) (RPCService_GbpSubnetDumpClient, error) {
430 stream, err := c.conn.NewStream(ctx)
434 x := &serviceClient_GbpSubnetDumpClient{stream}
435 if err := x.Stream.SendMsg(in); err != nil {
438 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
444 type RPCService_GbpSubnetDumpClient interface {
445 Recv() (*GbpSubnetDetails, error)
449 type serviceClient_GbpSubnetDumpClient struct {
453 func (c *serviceClient_GbpSubnetDumpClient) Recv() (*GbpSubnetDetails, error) {
454 msg, err := c.Stream.RecvMsg()
458 switch m := msg.(type) {
459 case *GbpSubnetDetails:
461 case *vpe.ControlPingReply:
464 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
468 func (c *serviceClient) GbpVxlanTunnelAdd(ctx context.Context, in *GbpVxlanTunnelAdd) (*GbpVxlanTunnelAddReply, error) {
469 out := new(GbpVxlanTunnelAddReply)
470 err := c.conn.Invoke(ctx, in, out)
477 func (c *serviceClient) GbpVxlanTunnelDel(ctx context.Context, in *GbpVxlanTunnelDel) (*GbpVxlanTunnelDelReply, error) {
478 out := new(GbpVxlanTunnelDelReply)
479 err := c.conn.Invoke(ctx, in, out)
486 func (c *serviceClient) GbpVxlanTunnelDump(ctx context.Context, in *GbpVxlanTunnelDump) (RPCService_GbpVxlanTunnelDumpClient, error) {
487 stream, err := c.conn.NewStream(ctx)
491 x := &serviceClient_GbpVxlanTunnelDumpClient{stream}
492 if err := x.Stream.SendMsg(in); err != nil {
495 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
501 type RPCService_GbpVxlanTunnelDumpClient interface {
502 Recv() (*GbpVxlanTunnelDetails, error)
506 type serviceClient_GbpVxlanTunnelDumpClient struct {
510 func (c *serviceClient_GbpVxlanTunnelDumpClient) Recv() (*GbpVxlanTunnelDetails, error) {
511 msg, err := c.Stream.RecvMsg()
515 switch m := msg.(type) {
516 case *GbpVxlanTunnelDetails:
518 case *vpe.ControlPingReply:
521 return nil, fmt.Errorf("unexpected message: %T %v", m, m)