1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
10 api "git.fd.io/govpp.git/api"
11 vpe "git.fd.io/govpp.git/binapi/vpe"
14 // RPCService defines RPC service acl.
15 type RPCService interface {
16 ACLAddReplace(ctx context.Context, in *ACLAddReplace) (*ACLAddReplaceReply, error)
17 ACLDel(ctx context.Context, in *ACLDel) (*ACLDelReply, error)
18 ACLDump(ctx context.Context, in *ACLDump) (RPCService_ACLDumpClient, error)
19 ACLInterfaceAddDel(ctx context.Context, in *ACLInterfaceAddDel) (*ACLInterfaceAddDelReply, error)
20 ACLInterfaceEtypeWhitelistDump(ctx context.Context, in *ACLInterfaceEtypeWhitelistDump) (RPCService_ACLInterfaceEtypeWhitelistDumpClient, error)
21 ACLInterfaceListDump(ctx context.Context, in *ACLInterfaceListDump) (RPCService_ACLInterfaceListDumpClient, error)
22 ACLInterfaceSetACLList(ctx context.Context, in *ACLInterfaceSetACLList) (*ACLInterfaceSetACLListReply, error)
23 ACLInterfaceSetEtypeWhitelist(ctx context.Context, in *ACLInterfaceSetEtypeWhitelist) (*ACLInterfaceSetEtypeWhitelistReply, error)
24 ACLPluginControlPing(ctx context.Context, in *ACLPluginControlPing) (*ACLPluginControlPingReply, error)
25 ACLPluginGetConnTableMaxEntries(ctx context.Context, in *ACLPluginGetConnTableMaxEntries) (*ACLPluginGetConnTableMaxEntriesReply, error)
26 ACLPluginGetVersion(ctx context.Context, in *ACLPluginGetVersion) (*ACLPluginGetVersionReply, error)
27 ACLStatsIntfCountersEnable(ctx context.Context, in *ACLStatsIntfCountersEnable) (*ACLStatsIntfCountersEnableReply, error)
28 MacipACLAdd(ctx context.Context, in *MacipACLAdd) (*MacipACLAddReply, error)
29 MacipACLAddReplace(ctx context.Context, in *MacipACLAddReplace) (*MacipACLAddReplaceReply, error)
30 MacipACLDel(ctx context.Context, in *MacipACLDel) (*MacipACLDelReply, error)
31 MacipACLDump(ctx context.Context, in *MacipACLDump) (RPCService_MacipACLDumpClient, error)
32 MacipACLInterfaceAddDel(ctx context.Context, in *MacipACLInterfaceAddDel) (*MacipACLInterfaceAddDelReply, error)
33 MacipACLInterfaceGet(ctx context.Context, in *MacipACLInterfaceGet) (*MacipACLInterfaceGetReply, error)
34 MacipACLInterfaceListDump(ctx context.Context, in *MacipACLInterfaceListDump) (RPCService_MacipACLInterfaceListDumpClient, error)
37 type serviceClient struct {
41 func NewServiceClient(conn api.Connection) RPCService {
42 return &serviceClient{conn}
45 func (c *serviceClient) ACLAddReplace(ctx context.Context, in *ACLAddReplace) (*ACLAddReplaceReply, error) {
46 out := new(ACLAddReplaceReply)
47 err := c.conn.Invoke(ctx, in, out)
51 return out, api.RetvalToVPPApiError(out.Retval)
54 func (c *serviceClient) ACLDel(ctx context.Context, in *ACLDel) (*ACLDelReply, error) {
55 out := new(ACLDelReply)
56 err := c.conn.Invoke(ctx, in, out)
60 return out, api.RetvalToVPPApiError(out.Retval)
63 func (c *serviceClient) ACLDump(ctx context.Context, in *ACLDump) (RPCService_ACLDumpClient, error) {
64 stream, err := c.conn.NewStream(ctx)
68 x := &serviceClient_ACLDumpClient{stream}
69 if err := x.Stream.SendMsg(in); err != nil {
72 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
78 type RPCService_ACLDumpClient interface {
79 Recv() (*ACLDetails, error)
83 type serviceClient_ACLDumpClient struct {
87 func (c *serviceClient_ACLDumpClient) Recv() (*ACLDetails, error) {
88 msg, err := c.Stream.RecvMsg()
92 switch m := msg.(type) {
95 case *vpe.ControlPingReply:
98 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
102 func (c *serviceClient) ACLInterfaceAddDel(ctx context.Context, in *ACLInterfaceAddDel) (*ACLInterfaceAddDelReply, error) {
103 out := new(ACLInterfaceAddDelReply)
104 err := c.conn.Invoke(ctx, in, out)
108 return out, api.RetvalToVPPApiError(out.Retval)
111 func (c *serviceClient) ACLInterfaceEtypeWhitelistDump(ctx context.Context, in *ACLInterfaceEtypeWhitelistDump) (RPCService_ACLInterfaceEtypeWhitelistDumpClient, error) {
112 stream, err := c.conn.NewStream(ctx)
116 x := &serviceClient_ACLInterfaceEtypeWhitelistDumpClient{stream}
117 if err := x.Stream.SendMsg(in); err != nil {
120 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
126 type RPCService_ACLInterfaceEtypeWhitelistDumpClient interface {
127 Recv() (*ACLInterfaceEtypeWhitelistDetails, error)
131 type serviceClient_ACLInterfaceEtypeWhitelistDumpClient struct {
135 func (c *serviceClient_ACLInterfaceEtypeWhitelistDumpClient) Recv() (*ACLInterfaceEtypeWhitelistDetails, error) {
136 msg, err := c.Stream.RecvMsg()
140 switch m := msg.(type) {
141 case *ACLInterfaceEtypeWhitelistDetails:
143 case *vpe.ControlPingReply:
146 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
150 func (c *serviceClient) ACLInterfaceListDump(ctx context.Context, in *ACLInterfaceListDump) (RPCService_ACLInterfaceListDumpClient, error) {
151 stream, err := c.conn.NewStream(ctx)
155 x := &serviceClient_ACLInterfaceListDumpClient{stream}
156 if err := x.Stream.SendMsg(in); err != nil {
159 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
165 type RPCService_ACLInterfaceListDumpClient interface {
166 Recv() (*ACLInterfaceListDetails, error)
170 type serviceClient_ACLInterfaceListDumpClient struct {
174 func (c *serviceClient_ACLInterfaceListDumpClient) Recv() (*ACLInterfaceListDetails, error) {
175 msg, err := c.Stream.RecvMsg()
179 switch m := msg.(type) {
180 case *ACLInterfaceListDetails:
182 case *vpe.ControlPingReply:
185 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
189 func (c *serviceClient) ACLInterfaceSetACLList(ctx context.Context, in *ACLInterfaceSetACLList) (*ACLInterfaceSetACLListReply, error) {
190 out := new(ACLInterfaceSetACLListReply)
191 err := c.conn.Invoke(ctx, in, out)
195 return out, api.RetvalToVPPApiError(out.Retval)
198 func (c *serviceClient) ACLInterfaceSetEtypeWhitelist(ctx context.Context, in *ACLInterfaceSetEtypeWhitelist) (*ACLInterfaceSetEtypeWhitelistReply, error) {
199 out := new(ACLInterfaceSetEtypeWhitelistReply)
200 err := c.conn.Invoke(ctx, in, out)
204 return out, api.RetvalToVPPApiError(out.Retval)
207 func (c *serviceClient) ACLPluginControlPing(ctx context.Context, in *ACLPluginControlPing) (*ACLPluginControlPingReply, error) {
208 out := new(ACLPluginControlPingReply)
209 err := c.conn.Invoke(ctx, in, out)
213 return out, api.RetvalToVPPApiError(out.Retval)
216 func (c *serviceClient) ACLPluginGetConnTableMaxEntries(ctx context.Context, in *ACLPluginGetConnTableMaxEntries) (*ACLPluginGetConnTableMaxEntriesReply, error) {
217 out := new(ACLPluginGetConnTableMaxEntriesReply)
218 err := c.conn.Invoke(ctx, in, out)
225 func (c *serviceClient) ACLPluginGetVersion(ctx context.Context, in *ACLPluginGetVersion) (*ACLPluginGetVersionReply, error) {
226 out := new(ACLPluginGetVersionReply)
227 err := c.conn.Invoke(ctx, in, out)
234 func (c *serviceClient) ACLStatsIntfCountersEnable(ctx context.Context, in *ACLStatsIntfCountersEnable) (*ACLStatsIntfCountersEnableReply, error) {
235 out := new(ACLStatsIntfCountersEnableReply)
236 err := c.conn.Invoke(ctx, in, out)
240 return out, api.RetvalToVPPApiError(out.Retval)
243 func (c *serviceClient) MacipACLAdd(ctx context.Context, in *MacipACLAdd) (*MacipACLAddReply, error) {
244 out := new(MacipACLAddReply)
245 err := c.conn.Invoke(ctx, in, out)
249 return out, api.RetvalToVPPApiError(out.Retval)
252 func (c *serviceClient) MacipACLAddReplace(ctx context.Context, in *MacipACLAddReplace) (*MacipACLAddReplaceReply, error) {
253 out := new(MacipACLAddReplaceReply)
254 err := c.conn.Invoke(ctx, in, out)
258 return out, api.RetvalToVPPApiError(out.Retval)
261 func (c *serviceClient) MacipACLDel(ctx context.Context, in *MacipACLDel) (*MacipACLDelReply, error) {
262 out := new(MacipACLDelReply)
263 err := c.conn.Invoke(ctx, in, out)
267 return out, api.RetvalToVPPApiError(out.Retval)
270 func (c *serviceClient) MacipACLDump(ctx context.Context, in *MacipACLDump) (RPCService_MacipACLDumpClient, error) {
271 stream, err := c.conn.NewStream(ctx)
275 x := &serviceClient_MacipACLDumpClient{stream}
276 if err := x.Stream.SendMsg(in); err != nil {
279 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
285 type RPCService_MacipACLDumpClient interface {
286 Recv() (*MacipACLDetails, error)
290 type serviceClient_MacipACLDumpClient struct {
294 func (c *serviceClient_MacipACLDumpClient) Recv() (*MacipACLDetails, error) {
295 msg, err := c.Stream.RecvMsg()
299 switch m := msg.(type) {
300 case *MacipACLDetails:
302 case *vpe.ControlPingReply:
305 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
309 func (c *serviceClient) MacipACLInterfaceAddDel(ctx context.Context, in *MacipACLInterfaceAddDel) (*MacipACLInterfaceAddDelReply, error) {
310 out := new(MacipACLInterfaceAddDelReply)
311 err := c.conn.Invoke(ctx, in, out)
315 return out, api.RetvalToVPPApiError(out.Retval)
318 func (c *serviceClient) MacipACLInterfaceGet(ctx context.Context, in *MacipACLInterfaceGet) (*MacipACLInterfaceGetReply, error) {
319 out := new(MacipACLInterfaceGetReply)
320 err := c.conn.Invoke(ctx, in, out)
327 func (c *serviceClient) MacipACLInterfaceListDump(ctx context.Context, in *MacipACLInterfaceListDump) (RPCService_MacipACLInterfaceListDumpClient, error) {
328 stream, err := c.conn.NewStream(ctx)
332 x := &serviceClient_MacipACLInterfaceListDumpClient{stream}
333 if err := x.Stream.SendMsg(in); err != nil {
336 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
342 type RPCService_MacipACLInterfaceListDumpClient interface {
343 Recv() (*MacipACLInterfaceListDetails, error)
347 type serviceClient_MacipACLInterfaceListDumpClient struct {
351 func (c *serviceClient_MacipACLInterfaceListDumpClient) Recv() (*MacipACLInterfaceListDetails, error) {
352 msg, err := c.Stream.RecvMsg()
356 switch m := msg.(type) {
357 case *MacipACLInterfaceListDetails:
359 case *vpe.ControlPingReply:
362 return nil, fmt.Errorf("unexpected message: %T %v", m, m)