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 acl.
14 type RPCService interface {
15 ACLAddReplace(ctx context.Context, in *ACLAddReplace) (*ACLAddReplaceReply, error)
16 ACLDel(ctx context.Context, in *ACLDel) (*ACLDelReply, error)
17 ACLDump(ctx context.Context, in *ACLDump) (RPCService_ACLDumpClient, error)
18 ACLInterfaceAddDel(ctx context.Context, in *ACLInterfaceAddDel) (*ACLInterfaceAddDelReply, error)
19 ACLInterfaceEtypeWhitelistDump(ctx context.Context, in *ACLInterfaceEtypeWhitelistDump) (RPCService_ACLInterfaceEtypeWhitelistDumpClient, error)
20 ACLInterfaceListDump(ctx context.Context, in *ACLInterfaceListDump) (RPCService_ACLInterfaceListDumpClient, error)
21 ACLInterfaceSetACLList(ctx context.Context, in *ACLInterfaceSetACLList) (*ACLInterfaceSetACLListReply, error)
22 ACLInterfaceSetEtypeWhitelist(ctx context.Context, in *ACLInterfaceSetEtypeWhitelist) (*ACLInterfaceSetEtypeWhitelistReply, error)
23 ACLPluginControlPing(ctx context.Context, in *ACLPluginControlPing) (*ACLPluginControlPingReply, error)
24 ACLPluginGetConnTableMaxEntries(ctx context.Context, in *ACLPluginGetConnTableMaxEntries) (*ACLPluginGetConnTableMaxEntriesReply, error)
25 ACLPluginGetVersion(ctx context.Context, in *ACLPluginGetVersion) (*ACLPluginGetVersionReply, error)
26 ACLStatsIntfCountersEnable(ctx context.Context, in *ACLStatsIntfCountersEnable) (*ACLStatsIntfCountersEnableReply, error)
27 MacipACLAdd(ctx context.Context, in *MacipACLAdd) (*MacipACLAddReply, error)
28 MacipACLAddReplace(ctx context.Context, in *MacipACLAddReplace) (*MacipACLAddReplaceReply, error)
29 MacipACLDel(ctx context.Context, in *MacipACLDel) (*MacipACLDelReply, error)
30 MacipACLDump(ctx context.Context, in *MacipACLDump) (RPCService_MacipACLDumpClient, error)
31 MacipACLInterfaceAddDel(ctx context.Context, in *MacipACLInterfaceAddDel) (*MacipACLInterfaceAddDelReply, error)
32 MacipACLInterfaceGet(ctx context.Context, in *MacipACLInterfaceGet) (*MacipACLInterfaceGetReply, error)
33 MacipACLInterfaceListDump(ctx context.Context, in *MacipACLInterfaceListDump) (RPCService_MacipACLInterfaceListDumpClient, error)
36 type serviceClient struct {
40 func NewServiceClient(conn api.Connection) RPCService {
41 return &serviceClient{conn}
44 func (c *serviceClient) ACLAddReplace(ctx context.Context, in *ACLAddReplace) (*ACLAddReplaceReply, error) {
45 out := new(ACLAddReplaceReply)
46 err := c.conn.Invoke(ctx, in, out)
53 func (c *serviceClient) ACLDel(ctx context.Context, in *ACLDel) (*ACLDelReply, error) {
54 out := new(ACLDelReply)
55 err := c.conn.Invoke(ctx, in, out)
62 func (c *serviceClient) ACLDump(ctx context.Context, in *ACLDump) (RPCService_ACLDumpClient, error) {
63 stream, err := c.conn.NewStream(ctx)
67 x := &serviceClient_ACLDumpClient{stream}
68 if err := x.Stream.SendMsg(in); err != nil {
71 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
77 type RPCService_ACLDumpClient interface {
78 Recv() (*ACLDetails, error)
82 type serviceClient_ACLDumpClient struct {
86 func (c *serviceClient_ACLDumpClient) Recv() (*ACLDetails, error) {
87 msg, err := c.Stream.RecvMsg()
91 switch m := msg.(type) {
94 case *vpe.ControlPingReply:
97 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
101 func (c *serviceClient) ACLInterfaceAddDel(ctx context.Context, in *ACLInterfaceAddDel) (*ACLInterfaceAddDelReply, error) {
102 out := new(ACLInterfaceAddDelReply)
103 err := c.conn.Invoke(ctx, in, out)
110 func (c *serviceClient) ACLInterfaceEtypeWhitelistDump(ctx context.Context, in *ACLInterfaceEtypeWhitelistDump) (RPCService_ACLInterfaceEtypeWhitelistDumpClient, error) {
111 stream, err := c.conn.NewStream(ctx)
115 x := &serviceClient_ACLInterfaceEtypeWhitelistDumpClient{stream}
116 if err := x.Stream.SendMsg(in); err != nil {
119 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
125 type RPCService_ACLInterfaceEtypeWhitelistDumpClient interface {
126 Recv() (*ACLInterfaceEtypeWhitelistDetails, error)
130 type serviceClient_ACLInterfaceEtypeWhitelistDumpClient struct {
134 func (c *serviceClient_ACLInterfaceEtypeWhitelistDumpClient) Recv() (*ACLInterfaceEtypeWhitelistDetails, error) {
135 msg, err := c.Stream.RecvMsg()
139 switch m := msg.(type) {
140 case *ACLInterfaceEtypeWhitelistDetails:
142 case *vpe.ControlPingReply:
145 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
149 func (c *serviceClient) ACLInterfaceListDump(ctx context.Context, in *ACLInterfaceListDump) (RPCService_ACLInterfaceListDumpClient, error) {
150 stream, err := c.conn.NewStream(ctx)
154 x := &serviceClient_ACLInterfaceListDumpClient{stream}
155 if err := x.Stream.SendMsg(in); err != nil {
158 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
164 type RPCService_ACLInterfaceListDumpClient interface {
165 Recv() (*ACLInterfaceListDetails, error)
169 type serviceClient_ACLInterfaceListDumpClient struct {
173 func (c *serviceClient_ACLInterfaceListDumpClient) Recv() (*ACLInterfaceListDetails, error) {
174 msg, err := c.Stream.RecvMsg()
178 switch m := msg.(type) {
179 case *ACLInterfaceListDetails:
181 case *vpe.ControlPingReply:
184 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
188 func (c *serviceClient) ACLInterfaceSetACLList(ctx context.Context, in *ACLInterfaceSetACLList) (*ACLInterfaceSetACLListReply, error) {
189 out := new(ACLInterfaceSetACLListReply)
190 err := c.conn.Invoke(ctx, in, out)
197 func (c *serviceClient) ACLInterfaceSetEtypeWhitelist(ctx context.Context, in *ACLInterfaceSetEtypeWhitelist) (*ACLInterfaceSetEtypeWhitelistReply, error) {
198 out := new(ACLInterfaceSetEtypeWhitelistReply)
199 err := c.conn.Invoke(ctx, in, out)
206 func (c *serviceClient) ACLPluginControlPing(ctx context.Context, in *ACLPluginControlPing) (*ACLPluginControlPingReply, error) {
207 out := new(ACLPluginControlPingReply)
208 err := c.conn.Invoke(ctx, in, out)
215 func (c *serviceClient) ACLPluginGetConnTableMaxEntries(ctx context.Context, in *ACLPluginGetConnTableMaxEntries) (*ACLPluginGetConnTableMaxEntriesReply, error) {
216 out := new(ACLPluginGetConnTableMaxEntriesReply)
217 err := c.conn.Invoke(ctx, in, out)
224 func (c *serviceClient) ACLPluginGetVersion(ctx context.Context, in *ACLPluginGetVersion) (*ACLPluginGetVersionReply, error) {
225 out := new(ACLPluginGetVersionReply)
226 err := c.conn.Invoke(ctx, in, out)
233 func (c *serviceClient) ACLStatsIntfCountersEnable(ctx context.Context, in *ACLStatsIntfCountersEnable) (*ACLStatsIntfCountersEnableReply, error) {
234 out := new(ACLStatsIntfCountersEnableReply)
235 err := c.conn.Invoke(ctx, in, out)
242 func (c *serviceClient) MacipACLAdd(ctx context.Context, in *MacipACLAdd) (*MacipACLAddReply, error) {
243 out := new(MacipACLAddReply)
244 err := c.conn.Invoke(ctx, in, out)
251 func (c *serviceClient) MacipACLAddReplace(ctx context.Context, in *MacipACLAddReplace) (*MacipACLAddReplaceReply, error) {
252 out := new(MacipACLAddReplaceReply)
253 err := c.conn.Invoke(ctx, in, out)
260 func (c *serviceClient) MacipACLDel(ctx context.Context, in *MacipACLDel) (*MacipACLDelReply, error) {
261 out := new(MacipACLDelReply)
262 err := c.conn.Invoke(ctx, in, out)
269 func (c *serviceClient) MacipACLDump(ctx context.Context, in *MacipACLDump) (RPCService_MacipACLDumpClient, error) {
270 stream, err := c.conn.NewStream(ctx)
274 x := &serviceClient_MacipACLDumpClient{stream}
275 if err := x.Stream.SendMsg(in); err != nil {
278 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
284 type RPCService_MacipACLDumpClient interface {
285 Recv() (*MacipACLDetails, error)
289 type serviceClient_MacipACLDumpClient struct {
293 func (c *serviceClient_MacipACLDumpClient) Recv() (*MacipACLDetails, error) {
294 msg, err := c.Stream.RecvMsg()
298 switch m := msg.(type) {
299 case *MacipACLDetails:
301 case *vpe.ControlPingReply:
304 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
308 func (c *serviceClient) MacipACLInterfaceAddDel(ctx context.Context, in *MacipACLInterfaceAddDel) (*MacipACLInterfaceAddDelReply, error) {
309 out := new(MacipACLInterfaceAddDelReply)
310 err := c.conn.Invoke(ctx, in, out)
317 func (c *serviceClient) MacipACLInterfaceGet(ctx context.Context, in *MacipACLInterfaceGet) (*MacipACLInterfaceGetReply, error) {
318 out := new(MacipACLInterfaceGetReply)
319 err := c.conn.Invoke(ctx, in, out)
326 func (c *serviceClient) MacipACLInterfaceListDump(ctx context.Context, in *MacipACLInterfaceListDump) (RPCService_MacipACLInterfaceListDumpClient, error) {
327 stream, err := c.conn.NewStream(ctx)
331 x := &serviceClient_MacipACLInterfaceListDumpClient{stream}
332 if err := x.Stream.SendMsg(in); err != nil {
335 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
341 type RPCService_MacipACLInterfaceListDumpClient interface {
342 Recv() (*MacipACLInterfaceListDetails, error)
346 type serviceClient_MacipACLInterfaceListDumpClient struct {
350 func (c *serviceClient_MacipACLInterfaceListDumpClient) Recv() (*MacipACLInterfaceListDetails, error) {
351 msg, err := c.Stream.RecvMsg()
355 switch m := msg.(type) {
356 case *MacipACLInterfaceListDetails:
358 case *vpe.ControlPingReply:
361 return nil, fmt.Errorf("unexpected message: %T %v", m, m)