1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
2 // source: /usr/share/vpp/api/core/vpe.api.json
5 Package vpe is a generated VPP binary API for 'vpe' module.
17 api "git.fd.io/govpp.git/api"
18 struc "github.com/lunixbochs/struc"
24 // ModuleName is the name of this module.
26 // APIVersion is the API version of this module.
28 // VersionCrc is the CRC of this module.
29 VersionCrc = 0x2cc8d629
32 // ThreadData represents VPP binary API type 'thread_data'.
33 type ThreadData struct {
35 Name []byte `struc:"[64]byte"`
36 Type []byte `struc:"[64]byte"`
43 func (*ThreadData) GetTypeName() string {
46 func (*ThreadData) GetCrcString() string {
50 // AddNodeNext represents VPP binary API message 'add_node_next'.
51 type AddNodeNext struct {
52 NodeName []byte `struc:"[64]byte"`
53 NextName []byte `struc:"[64]byte"`
56 func (*AddNodeNext) GetMessageName() string {
57 return "add_node_next"
59 func (*AddNodeNext) GetCrcString() string {
62 func (*AddNodeNext) GetMessageType() api.MessageType {
63 return api.RequestMessage
66 // AddNodeNextReply represents VPP binary API message 'add_node_next_reply'.
67 type AddNodeNextReply struct {
72 func (*AddNodeNextReply) GetMessageName() string {
73 return "add_node_next_reply"
75 func (*AddNodeNextReply) GetCrcString() string {
78 func (*AddNodeNextReply) GetMessageType() api.MessageType {
79 return api.ReplyMessage
82 // Cli represents VPP binary API message 'cli'.
87 func (*Cli) GetMessageName() string {
90 func (*Cli) GetCrcString() string {
93 func (*Cli) GetMessageType() api.MessageType {
94 return api.RequestMessage
97 // CliInband represents VPP binary API message 'cli_inband'.
98 type CliInband struct {
99 XXX_CmdLen uint32 `struc:"sizeof=Cmd"`
103 func (*CliInband) GetMessageName() string {
106 func (*CliInband) GetCrcString() string {
109 func (*CliInband) GetMessageType() api.MessageType {
110 return api.RequestMessage
113 // CliInbandReply represents VPP binary API message 'cli_inband_reply'.
114 type CliInbandReply struct {
116 XXX_ReplyLen uint32 `struc:"sizeof=Reply"`
120 func (*CliInbandReply) GetMessageName() string {
121 return "cli_inband_reply"
123 func (*CliInbandReply) GetCrcString() string {
126 func (*CliInbandReply) GetMessageType() api.MessageType {
127 return api.ReplyMessage
130 // CliReply represents VPP binary API message 'cli_reply'.
131 type CliReply struct {
136 func (*CliReply) GetMessageName() string {
139 func (*CliReply) GetCrcString() string {
142 func (*CliReply) GetMessageType() api.MessageType {
143 return api.ReplyMessage
146 // ControlPing represents VPP binary API message 'control_ping'.
147 type ControlPing struct{}
149 func (*ControlPing) GetMessageName() string {
150 return "control_ping"
152 func (*ControlPing) GetCrcString() string {
155 func (*ControlPing) GetMessageType() api.MessageType {
156 return api.RequestMessage
159 // ControlPingReply represents VPP binary API message 'control_ping_reply'.
160 type ControlPingReply struct {
166 func (*ControlPingReply) GetMessageName() string {
167 return "control_ping_reply"
169 func (*ControlPingReply) GetCrcString() string {
172 func (*ControlPingReply) GetMessageType() api.MessageType {
173 return api.ReplyMessage
176 // GetNextIndex represents VPP binary API message 'get_next_index'.
177 type GetNextIndex struct {
178 NodeName []byte `struc:"[64]byte"`
179 NextName []byte `struc:"[64]byte"`
182 func (*GetNextIndex) GetMessageName() string {
183 return "get_next_index"
185 func (*GetNextIndex) GetCrcString() string {
188 func (*GetNextIndex) GetMessageType() api.MessageType {
189 return api.RequestMessage
192 // GetNextIndexReply represents VPP binary API message 'get_next_index_reply'.
193 type GetNextIndexReply struct {
198 func (*GetNextIndexReply) GetMessageName() string {
199 return "get_next_index_reply"
201 func (*GetNextIndexReply) GetCrcString() string {
204 func (*GetNextIndexReply) GetMessageType() api.MessageType {
205 return api.ReplyMessage
208 // GetNodeGraph represents VPP binary API message 'get_node_graph'.
209 type GetNodeGraph struct{}
211 func (*GetNodeGraph) GetMessageName() string {
212 return "get_node_graph"
214 func (*GetNodeGraph) GetCrcString() string {
217 func (*GetNodeGraph) GetMessageType() api.MessageType {
218 return api.RequestMessage
221 // GetNodeGraphReply represents VPP binary API message 'get_node_graph_reply'.
222 type GetNodeGraphReply struct {
227 func (*GetNodeGraphReply) GetMessageName() string {
228 return "get_node_graph_reply"
230 func (*GetNodeGraphReply) GetCrcString() string {
233 func (*GetNodeGraphReply) GetMessageType() api.MessageType {
234 return api.ReplyMessage
237 // GetNodeIndex represents VPP binary API message 'get_node_index'.
238 type GetNodeIndex struct {
239 NodeName []byte `struc:"[64]byte"`
242 func (*GetNodeIndex) GetMessageName() string {
243 return "get_node_index"
245 func (*GetNodeIndex) GetCrcString() string {
248 func (*GetNodeIndex) GetMessageType() api.MessageType {
249 return api.RequestMessage
252 // GetNodeIndexReply represents VPP binary API message 'get_node_index_reply'.
253 type GetNodeIndexReply struct {
258 func (*GetNodeIndexReply) GetMessageName() string {
259 return "get_node_index_reply"
261 func (*GetNodeIndexReply) GetCrcString() string {
264 func (*GetNodeIndexReply) GetMessageType() api.MessageType {
265 return api.ReplyMessage
268 // ShowThreads represents VPP binary API message 'show_threads'.
269 type ShowThreads struct{}
271 func (*ShowThreads) GetMessageName() string {
272 return "show_threads"
274 func (*ShowThreads) GetCrcString() string {
277 func (*ShowThreads) GetMessageType() api.MessageType {
278 return api.RequestMessage
281 // ShowThreadsReply represents VPP binary API message 'show_threads_reply'.
282 type ShowThreadsReply struct {
284 Count uint32 `struc:"sizeof=ThreadData"`
285 ThreadData []ThreadData
288 func (*ShowThreadsReply) GetMessageName() string {
289 return "show_threads_reply"
291 func (*ShowThreadsReply) GetCrcString() string {
294 func (*ShowThreadsReply) GetMessageType() api.MessageType {
295 return api.ReplyMessage
298 // ShowVersion represents VPP binary API message 'show_version'.
299 type ShowVersion struct{}
301 func (*ShowVersion) GetMessageName() string {
302 return "show_version"
304 func (*ShowVersion) GetCrcString() string {
307 func (*ShowVersion) GetMessageType() api.MessageType {
308 return api.RequestMessage
311 // ShowVersionReply represents VPP binary API message 'show_version_reply'.
312 type ShowVersionReply struct {
314 XXX_ProgramLen uint32 `struc:"sizeof=Program"`
316 XXX_VersionLen uint32 `struc:"sizeof=Version"`
318 XXX_BuildDateLen uint32 `struc:"sizeof=BuildDate"`
320 XXX_BuildDirectoryLen uint32 `struc:"sizeof=BuildDirectory"`
321 BuildDirectory string
324 func (*ShowVersionReply) GetMessageName() string {
325 return "show_version_reply"
327 func (*ShowVersionReply) GetCrcString() string {
330 func (*ShowVersionReply) GetMessageType() api.MessageType {
331 return api.ReplyMessage
335 api.RegisterMessage((*AddNodeNext)(nil), "vpe.AddNodeNext")
336 api.RegisterMessage((*AddNodeNextReply)(nil), "vpe.AddNodeNextReply")
337 api.RegisterMessage((*Cli)(nil), "vpe.Cli")
338 api.RegisterMessage((*CliInband)(nil), "vpe.CliInband")
339 api.RegisterMessage((*CliInbandReply)(nil), "vpe.CliInbandReply")
340 api.RegisterMessage((*CliReply)(nil), "vpe.CliReply")
341 api.RegisterMessage((*ControlPing)(nil), "vpe.ControlPing")
342 api.RegisterMessage((*ControlPingReply)(nil), "vpe.ControlPingReply")
343 api.RegisterMessage((*GetNextIndex)(nil), "vpe.GetNextIndex")
344 api.RegisterMessage((*GetNextIndexReply)(nil), "vpe.GetNextIndexReply")
345 api.RegisterMessage((*GetNodeGraph)(nil), "vpe.GetNodeGraph")
346 api.RegisterMessage((*GetNodeGraphReply)(nil), "vpe.GetNodeGraphReply")
347 api.RegisterMessage((*GetNodeIndex)(nil), "vpe.GetNodeIndex")
348 api.RegisterMessage((*GetNodeIndexReply)(nil), "vpe.GetNodeIndexReply")
349 api.RegisterMessage((*ShowThreads)(nil), "vpe.ShowThreads")
350 api.RegisterMessage((*ShowThreadsReply)(nil), "vpe.ShowThreadsReply")
351 api.RegisterMessage((*ShowVersion)(nil), "vpe.ShowVersion")
352 api.RegisterMessage((*ShowVersionReply)(nil), "vpe.ShowVersionReply")
355 // Messages returns list of all messages in this module.
356 func AllMessages() []api.Message {
357 return []api.Message{
359 (*AddNodeNextReply)(nil),
362 (*CliInbandReply)(nil),
365 (*ControlPingReply)(nil),
366 (*GetNextIndex)(nil),
367 (*GetNextIndexReply)(nil),
368 (*GetNodeGraph)(nil),
369 (*GetNodeGraphReply)(nil),
370 (*GetNodeIndex)(nil),
371 (*GetNodeIndexReply)(nil),
373 (*ShowThreadsReply)(nil),
375 (*ShowVersionReply)(nil),
379 // RPCService represents RPC service API for vpe module.
380 type RPCService interface {
381 AddNodeNext(ctx context.Context, in *AddNodeNext) (*AddNodeNextReply, error)
382 Cli(ctx context.Context, in *Cli) (*CliReply, error)
383 CliInband(ctx context.Context, in *CliInband) (*CliInbandReply, error)
384 ControlPing(ctx context.Context, in *ControlPing) (*ControlPingReply, error)
385 GetNextIndex(ctx context.Context, in *GetNextIndex) (*GetNextIndexReply, error)
386 GetNodeGraph(ctx context.Context, in *GetNodeGraph) (*GetNodeGraphReply, error)
387 GetNodeIndex(ctx context.Context, in *GetNodeIndex) (*GetNodeIndexReply, error)
388 ShowThreads(ctx context.Context, in *ShowThreads) (*ShowThreadsReply, error)
389 ShowVersion(ctx context.Context, in *ShowVersion) (*ShowVersionReply, error)
392 type serviceClient struct {
396 func NewServiceClient(ch api.Channel) RPCService {
397 return &serviceClient{ch}
400 func (c *serviceClient) AddNodeNext(ctx context.Context, in *AddNodeNext) (*AddNodeNextReply, error) {
401 out := new(AddNodeNextReply)
402 err := c.ch.SendRequest(in).ReceiveReply(out)
409 func (c *serviceClient) Cli(ctx context.Context, in *Cli) (*CliReply, error) {
411 err := c.ch.SendRequest(in).ReceiveReply(out)
418 func (c *serviceClient) CliInband(ctx context.Context, in *CliInband) (*CliInbandReply, error) {
419 out := new(CliInbandReply)
420 err := c.ch.SendRequest(in).ReceiveReply(out)
427 func (c *serviceClient) ControlPing(ctx context.Context, in *ControlPing) (*ControlPingReply, error) {
428 out := new(ControlPingReply)
429 err := c.ch.SendRequest(in).ReceiveReply(out)
436 func (c *serviceClient) GetNextIndex(ctx context.Context, in *GetNextIndex) (*GetNextIndexReply, error) {
437 out := new(GetNextIndexReply)
438 err := c.ch.SendRequest(in).ReceiveReply(out)
445 func (c *serviceClient) GetNodeGraph(ctx context.Context, in *GetNodeGraph) (*GetNodeGraphReply, error) {
446 out := new(GetNodeGraphReply)
447 err := c.ch.SendRequest(in).ReceiveReply(out)
454 func (c *serviceClient) GetNodeIndex(ctx context.Context, in *GetNodeIndex) (*GetNodeIndexReply, error) {
455 out := new(GetNodeIndexReply)
456 err := c.ch.SendRequest(in).ReceiveReply(out)
463 func (c *serviceClient) ShowThreads(ctx context.Context, in *ShowThreads) (*ShowThreadsReply, error) {
464 out := new(ShowThreadsReply)
465 err := c.ch.SendRequest(in).ReceiveReply(out)
472 func (c *serviceClient) ShowVersion(ctx context.Context, in *ShowVersion) (*ShowVersionReply, error) {
473 out := new(ShowVersionReply)
474 err := c.ch.SendRequest(in).ReceiveReply(out)
481 // This is a compile-time assertion to ensure that this generated file
482 // is compatible with the GoVPP api package it is being compiled against.
483 // A compilation error at this line likely means your copy of the
484 // GoVPP api package needs to be updated.
485 const _ = api.GoVppAPIPackageIsVersion1 // please upgrade the GoVPP api package
487 // Reference imports to suppress errors if they are not otherwise used.
488 var _ = api.RegisterMessage
489 var _ = bytes.NewBuffer
490 var _ = context.Background