1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
10 api "go.fd.io/govpp/api"
11 memclnt "go.fd.io/govpp/binapi/memclnt"
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 ACLPluginUseHashLookupGet(ctx context.Context, in *ACLPluginUseHashLookupGet) (*ACLPluginUseHashLookupGetReply, error)
28 ACLPluginUseHashLookupSet(ctx context.Context, in *ACLPluginUseHashLookupSet) (*ACLPluginUseHashLookupSetReply, error)
29 ACLStatsIntfCountersEnable(ctx context.Context, in *ACLStatsIntfCountersEnable) (*ACLStatsIntfCountersEnableReply, error)
30 MacipACLAdd(ctx context.Context, in *MacipACLAdd) (*MacipACLAddReply, error)
31 MacipACLAddReplace(ctx context.Context, in *MacipACLAddReplace) (*MacipACLAddReplaceReply, error)
32 MacipACLDel(ctx context.Context, in *MacipACLDel) (*MacipACLDelReply, error)
33 MacipACLDump(ctx context.Context, in *MacipACLDump) (RPCService_MacipACLDumpClient, error)
34 MacipACLInterfaceAddDel(ctx context.Context, in *MacipACLInterfaceAddDel) (*MacipACLInterfaceAddDelReply, error)
35 MacipACLInterfaceGet(ctx context.Context, in *MacipACLInterfaceGet) (*MacipACLInterfaceGetReply, error)
36 MacipACLInterfaceListDump(ctx context.Context, in *MacipACLInterfaceListDump) (RPCService_MacipACLInterfaceListDumpClient, error)
39 type serviceClient struct {
43 func NewServiceClient(conn api.Connection) RPCService {
44 return &serviceClient{conn}
47 func (c *serviceClient) ACLAddReplace(ctx context.Context, in *ACLAddReplace) (*ACLAddReplaceReply, error) {
48 out := new(ACLAddReplaceReply)
49 err := c.conn.Invoke(ctx, in, out)
53 return out, api.RetvalToVPPApiError(out.Retval)
56 func (c *serviceClient) ACLDel(ctx context.Context, in *ACLDel) (*ACLDelReply, error) {
57 out := new(ACLDelReply)
58 err := c.conn.Invoke(ctx, in, out)
62 return out, api.RetvalToVPPApiError(out.Retval)
65 func (c *serviceClient) ACLDump(ctx context.Context, in *ACLDump) (RPCService_ACLDumpClient, error) {
66 stream, err := c.conn.NewStream(ctx)
70 x := &serviceClient_ACLDumpClient{stream}
71 if err := x.Stream.SendMsg(in); err != nil {
74 if err = x.Stream.SendMsg(&memclnt.ControlPing{}); err != nil {
80 type RPCService_ACLDumpClient interface {
81 Recv() (*ACLDetails, error)
85 type serviceClient_ACLDumpClient struct {
89 func (c *serviceClient_ACLDumpClient) Recv() (*ACLDetails, error) {
90 msg, err := c.Stream.RecvMsg()
94 switch m := msg.(type) {
97 case *memclnt.ControlPingReply:
98 err = c.Stream.Close()
104 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
108 func (c *serviceClient) ACLInterfaceAddDel(ctx context.Context, in *ACLInterfaceAddDel) (*ACLInterfaceAddDelReply, error) {
109 out := new(ACLInterfaceAddDelReply)
110 err := c.conn.Invoke(ctx, in, out)
114 return out, api.RetvalToVPPApiError(out.Retval)
117 func (c *serviceClient) ACLInterfaceEtypeWhitelistDump(ctx context.Context, in *ACLInterfaceEtypeWhitelistDump) (RPCService_ACLInterfaceEtypeWhitelistDumpClient, error) {
118 stream, err := c.conn.NewStream(ctx)
122 x := &serviceClient_ACLInterfaceEtypeWhitelistDumpClient{stream}
123 if err := x.Stream.SendMsg(in); err != nil {
126 if err = x.Stream.SendMsg(&memclnt.ControlPing{}); err != nil {
132 type RPCService_ACLInterfaceEtypeWhitelistDumpClient interface {
133 Recv() (*ACLInterfaceEtypeWhitelistDetails, error)
137 type serviceClient_ACLInterfaceEtypeWhitelistDumpClient struct {
141 func (c *serviceClient_ACLInterfaceEtypeWhitelistDumpClient) Recv() (*ACLInterfaceEtypeWhitelistDetails, error) {
142 msg, err := c.Stream.RecvMsg()
146 switch m := msg.(type) {
147 case *ACLInterfaceEtypeWhitelistDetails:
149 case *memclnt.ControlPingReply:
150 err = c.Stream.Close()
156 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
160 func (c *serviceClient) ACLInterfaceListDump(ctx context.Context, in *ACLInterfaceListDump) (RPCService_ACLInterfaceListDumpClient, error) {
161 stream, err := c.conn.NewStream(ctx)
165 x := &serviceClient_ACLInterfaceListDumpClient{stream}
166 if err := x.Stream.SendMsg(in); err != nil {
169 if err = x.Stream.SendMsg(&memclnt.ControlPing{}); err != nil {
175 type RPCService_ACLInterfaceListDumpClient interface {
176 Recv() (*ACLInterfaceListDetails, error)
180 type serviceClient_ACLInterfaceListDumpClient struct {
184 func (c *serviceClient_ACLInterfaceListDumpClient) Recv() (*ACLInterfaceListDetails, error) {
185 msg, err := c.Stream.RecvMsg()
189 switch m := msg.(type) {
190 case *ACLInterfaceListDetails:
192 case *memclnt.ControlPingReply:
193 err = c.Stream.Close()
199 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
203 func (c *serviceClient) ACLInterfaceSetACLList(ctx context.Context, in *ACLInterfaceSetACLList) (*ACLInterfaceSetACLListReply, error) {
204 out := new(ACLInterfaceSetACLListReply)
205 err := c.conn.Invoke(ctx, in, out)
209 return out, api.RetvalToVPPApiError(out.Retval)
212 func (c *serviceClient) ACLInterfaceSetEtypeWhitelist(ctx context.Context, in *ACLInterfaceSetEtypeWhitelist) (*ACLInterfaceSetEtypeWhitelistReply, error) {
213 out := new(ACLInterfaceSetEtypeWhitelistReply)
214 err := c.conn.Invoke(ctx, in, out)
218 return out, api.RetvalToVPPApiError(out.Retval)
221 func (c *serviceClient) ACLPluginControlPing(ctx context.Context, in *ACLPluginControlPing) (*ACLPluginControlPingReply, error) {
222 out := new(ACLPluginControlPingReply)
223 err := c.conn.Invoke(ctx, in, out)
227 return out, api.RetvalToVPPApiError(out.Retval)
230 func (c *serviceClient) ACLPluginGetConnTableMaxEntries(ctx context.Context, in *ACLPluginGetConnTableMaxEntries) (*ACLPluginGetConnTableMaxEntriesReply, error) {
231 out := new(ACLPluginGetConnTableMaxEntriesReply)
232 err := c.conn.Invoke(ctx, in, out)
239 func (c *serviceClient) ACLPluginGetVersion(ctx context.Context, in *ACLPluginGetVersion) (*ACLPluginGetVersionReply, error) {
240 out := new(ACLPluginGetVersionReply)
241 err := c.conn.Invoke(ctx, in, out)
248 func (c *serviceClient) ACLPluginUseHashLookupGet(ctx context.Context, in *ACLPluginUseHashLookupGet) (*ACLPluginUseHashLookupGetReply, error) {
249 out := new(ACLPluginUseHashLookupGetReply)
250 err := c.conn.Invoke(ctx, in, out)
257 func (c *serviceClient) ACLPluginUseHashLookupSet(ctx context.Context, in *ACLPluginUseHashLookupSet) (*ACLPluginUseHashLookupSetReply, error) {
258 out := new(ACLPluginUseHashLookupSetReply)
259 err := c.conn.Invoke(ctx, in, out)
263 return out, api.RetvalToVPPApiError(out.Retval)
266 func (c *serviceClient) ACLStatsIntfCountersEnable(ctx context.Context, in *ACLStatsIntfCountersEnable) (*ACLStatsIntfCountersEnableReply, error) {
267 out := new(ACLStatsIntfCountersEnableReply)
268 err := c.conn.Invoke(ctx, in, out)
272 return out, api.RetvalToVPPApiError(out.Retval)
275 func (c *serviceClient) MacipACLAdd(ctx context.Context, in *MacipACLAdd) (*MacipACLAddReply, error) {
276 out := new(MacipACLAddReply)
277 err := c.conn.Invoke(ctx, in, out)
281 return out, api.RetvalToVPPApiError(out.Retval)
284 func (c *serviceClient) MacipACLAddReplace(ctx context.Context, in *MacipACLAddReplace) (*MacipACLAddReplaceReply, error) {
285 out := new(MacipACLAddReplaceReply)
286 err := c.conn.Invoke(ctx, in, out)
290 return out, api.RetvalToVPPApiError(out.Retval)
293 func (c *serviceClient) MacipACLDel(ctx context.Context, in *MacipACLDel) (*MacipACLDelReply, error) {
294 out := new(MacipACLDelReply)
295 err := c.conn.Invoke(ctx, in, out)
299 return out, api.RetvalToVPPApiError(out.Retval)
302 func (c *serviceClient) MacipACLDump(ctx context.Context, in *MacipACLDump) (RPCService_MacipACLDumpClient, error) {
303 stream, err := c.conn.NewStream(ctx)
307 x := &serviceClient_MacipACLDumpClient{stream}
308 if err := x.Stream.SendMsg(in); err != nil {
311 if err = x.Stream.SendMsg(&memclnt.ControlPing{}); err != nil {
317 type RPCService_MacipACLDumpClient interface {
318 Recv() (*MacipACLDetails, error)
322 type serviceClient_MacipACLDumpClient struct {
326 func (c *serviceClient_MacipACLDumpClient) Recv() (*MacipACLDetails, error) {
327 msg, err := c.Stream.RecvMsg()
331 switch m := msg.(type) {
332 case *MacipACLDetails:
334 case *memclnt.ControlPingReply:
335 err = c.Stream.Close()
341 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
345 func (c *serviceClient) MacipACLInterfaceAddDel(ctx context.Context, in *MacipACLInterfaceAddDel) (*MacipACLInterfaceAddDelReply, error) {
346 out := new(MacipACLInterfaceAddDelReply)
347 err := c.conn.Invoke(ctx, in, out)
351 return out, api.RetvalToVPPApiError(out.Retval)
354 func (c *serviceClient) MacipACLInterfaceGet(ctx context.Context, in *MacipACLInterfaceGet) (*MacipACLInterfaceGetReply, error) {
355 out := new(MacipACLInterfaceGetReply)
356 err := c.conn.Invoke(ctx, in, out)
363 func (c *serviceClient) MacipACLInterfaceListDump(ctx context.Context, in *MacipACLInterfaceListDump) (RPCService_MacipACLInterfaceListDumpClient, error) {
364 stream, err := c.conn.NewStream(ctx)
368 x := &serviceClient_MacipACLInterfaceListDumpClient{stream}
369 if err := x.Stream.SendMsg(in); err != nil {
372 if err = x.Stream.SendMsg(&memclnt.ControlPing{}); err != nil {
378 type RPCService_MacipACLInterfaceListDumpClient interface {
379 Recv() (*MacipACLInterfaceListDetails, error)
383 type serviceClient_MacipACLInterfaceListDumpClient struct {
387 func (c *serviceClient_MacipACLInterfaceListDumpClient) Recv() (*MacipACLInterfaceListDetails, error) {
388 msg, err := c.Stream.RecvMsg()
392 switch m := msg.(type) {
393 case *MacipACLInterfaceListDetails:
395 case *memclnt.ControlPingReply:
396 err = c.Stream.Close()
402 return nil, fmt.Errorf("unexpected message: %T %v", m, m)