1 // Code generated by GoVPP binapi-generator. DO NOT EDIT.
2 // source: vpe.api.json
5 Package vpe is a generated VPP binary API of the 'vpe' VPP module.
7 It is generated from this file:
10 It contains these VPP binary API objects:
16 import "git.fd.io/govpp.git/api"
17 import "github.com/lunixbochs/struc"
20 // Reference imports to suppress errors if they are not otherwise used.
21 var _ = api.RegisterMessage
23 var _ = bytes.NewBuffer
27 // ControlPing represents the VPP binary API message 'control_ping'.
28 // Generated from 'vpe.api.json', line 4:
44 // "crc": "0x51077d14"
47 type ControlPing struct{}
49 func (*ControlPing) GetMessageName() string {
52 func (*ControlPing) GetCrcString() string {
55 func (*ControlPing) GetMessageType() api.MessageType {
56 return api.RequestMessage
58 func NewControlPing() api.Message {
62 // ControlPingReply represents the VPP binary API message 'control_ping_reply'.
63 // Generated from 'vpe.api.json', line 22:
65 // "control_ping_reply",
87 // "crc": "0xf6b0b8ca"
90 type ControlPingReply struct {
96 func (*ControlPingReply) GetMessageName() string {
97 return "control_ping_reply"
99 func (*ControlPingReply) GetCrcString() string {
102 func (*ControlPingReply) GetMessageType() api.MessageType {
103 return api.ReplyMessage
105 func NewControlPingReply() api.Message {
106 return &ControlPingReply{}
109 // Cli represents the VPP binary API message 'cli'.
110 // Generated from 'vpe.api.json', line 48:
130 // "crc": "0x23bfbfff"
137 func (*Cli) GetMessageName() string {
140 func (*Cli) GetCrcString() string {
143 func (*Cli) GetMessageType() api.MessageType {
144 return api.RequestMessage
146 func NewCli() api.Message {
150 // CliInband represents the VPP binary API message 'cli_inband'.
151 // Generated from 'vpe.api.json', line 70:
177 // "crc": "0x74e00a49"
180 type CliInband struct {
181 Length uint32 `struc:"sizeof=Cmd"`
185 func (*CliInband) GetMessageName() string {
188 func (*CliInband) GetCrcString() string {
191 func (*CliInband) GetMessageType() api.MessageType {
192 return api.RequestMessage
194 func NewCliInband() api.Message {
198 // CliReply represents the VPP binary API message 'cli_reply'.
199 // Generated from 'vpe.api.json', line 98:
219 // "crc": "0x06d68297"
222 type CliReply struct {
227 func (*CliReply) GetMessageName() string {
230 func (*CliReply) GetCrcString() string {
233 func (*CliReply) GetMessageType() api.MessageType {
234 return api.ReplyMessage
236 func NewCliReply() api.Message {
240 // CliInbandReply represents the VPP binary API message 'cli_inband_reply'.
241 // Generated from 'vpe.api.json', line 120:
243 // "cli_inband_reply",
267 // "crc": "0x1f22bbb8"
270 type CliInbandReply struct {
272 Length uint32 `struc:"sizeof=Reply"`
276 func (*CliInbandReply) GetMessageName() string {
277 return "cli_inband_reply"
279 func (*CliInbandReply) GetCrcString() string {
282 func (*CliInbandReply) GetMessageType() api.MessageType {
283 return api.ReplyMessage
285 func NewCliInbandReply() api.Message {
286 return &CliInbandReply{}
289 // GetNodeIndex represents the VPP binary API message 'get_node_index'.
290 // Generated from 'vpe.api.json', line 148:
311 // "crc": "0x6c9a495d"
314 type GetNodeIndex struct {
315 NodeName []byte `struc:"[64]byte"`
318 func (*GetNodeIndex) GetMessageName() string {
319 return "get_node_index"
321 func (*GetNodeIndex) GetCrcString() string {
324 func (*GetNodeIndex) GetMessageType() api.MessageType {
325 return api.RequestMessage
327 func NewGetNodeIndex() api.Message {
328 return &GetNodeIndex{}
331 // GetNodeIndexReply represents the VPP binary API message 'get_node_index_reply'.
332 // Generated from 'vpe.api.json', line 171:
334 // "get_node_index_reply",
352 // "crc": "0xa8600b89"
355 type GetNodeIndexReply struct {
360 func (*GetNodeIndexReply) GetMessageName() string {
361 return "get_node_index_reply"
363 func (*GetNodeIndexReply) GetCrcString() string {
366 func (*GetNodeIndexReply) GetMessageType() api.MessageType {
367 return api.ReplyMessage
369 func NewGetNodeIndexReply() api.Message {
370 return &GetNodeIndexReply{}
373 // AddNodeNext represents the VPP binary API message 'add_node_next'.
374 // Generated from 'vpe.api.json', line 193:
400 // "crc": "0x9ab92f7a"
403 type AddNodeNext struct {
404 NodeName []byte `struc:"[64]byte"`
405 NextName []byte `struc:"[64]byte"`
408 func (*AddNodeNext) GetMessageName() string {
409 return "add_node_next"
411 func (*AddNodeNext) GetCrcString() string {
414 func (*AddNodeNext) GetMessageType() api.MessageType {
415 return api.RequestMessage
417 func NewAddNodeNext() api.Message {
418 return &AddNodeNext{}
421 // AddNodeNextReply represents the VPP binary API message 'add_node_next_reply'.
422 // Generated from 'vpe.api.json', line 221:
424 // "add_node_next_reply",
442 // "crc": "0x2ed75f32"
445 type AddNodeNextReply struct {
450 func (*AddNodeNextReply) GetMessageName() string {
451 return "add_node_next_reply"
453 func (*AddNodeNextReply) GetCrcString() string {
456 func (*AddNodeNextReply) GetMessageType() api.MessageType {
457 return api.ReplyMessage
459 func NewAddNodeNextReply() api.Message {
460 return &AddNodeNextReply{}
463 // ShowVersion represents the VPP binary API message 'show_version'.
464 // Generated from 'vpe.api.json', line 243:
480 // "crc": "0x51077d14"
483 type ShowVersion struct{}
485 func (*ShowVersion) GetMessageName() string {
486 return "show_version"
488 func (*ShowVersion) GetCrcString() string {
491 func (*ShowVersion) GetMessageType() api.MessageType {
492 return api.RequestMessage
494 func NewShowVersion() api.Message {
495 return &ShowVersion{}
498 // ShowVersionReply represents the VPP binary API message 'show_version_reply'.
499 // Generated from 'vpe.api.json', line 261:
501 // "show_version_reply",
531 // "build_directory",
535 // "crc": "0x8b5a13b4"
538 type ShowVersionReply struct {
540 Program []byte `struc:"[32]byte"`
541 Version []byte `struc:"[32]byte"`
542 BuildDate []byte `struc:"[32]byte"`
543 BuildDirectory []byte `struc:"[256]byte"`
546 func (*ShowVersionReply) GetMessageName() string {
547 return "show_version_reply"
549 func (*ShowVersionReply) GetCrcString() string {
552 func (*ShowVersionReply) GetMessageType() api.MessageType {
553 return api.ReplyMessage
555 func NewShowVersionReply() api.Message {
556 return &ShowVersionReply{}
559 // GetNodeGraph represents the VPP binary API message 'get_node_graph'.
560 // Generated from 'vpe.api.json', line 299:
576 // "crc": "0x51077d14"
579 type GetNodeGraph struct{}
581 func (*GetNodeGraph) GetMessageName() string {
582 return "get_node_graph"
584 func (*GetNodeGraph) GetCrcString() string {
587 func (*GetNodeGraph) GetMessageType() api.MessageType {
588 return api.RequestMessage
590 func NewGetNodeGraph() api.Message {
591 return &GetNodeGraph{}
594 // GetNodeGraphReply represents the VPP binary API message 'get_node_graph_reply'.
595 // Generated from 'vpe.api.json', line 317:
597 // "get_node_graph_reply",
615 // "crc": "0x06d68297"
618 type GetNodeGraphReply struct {
623 func (*GetNodeGraphReply) GetMessageName() string {
624 return "get_node_graph_reply"
626 func (*GetNodeGraphReply) GetCrcString() string {
629 func (*GetNodeGraphReply) GetMessageType() api.MessageType {
630 return api.ReplyMessage
632 func NewGetNodeGraphReply() api.Message {
633 return &GetNodeGraphReply{}
636 // GetNextIndex represents the VPP binary API message 'get_next_index'.
637 // Generated from 'vpe.api.json', line 339:
663 // "crc": "0x9ab92f7a"
666 type GetNextIndex struct {
667 NodeName []byte `struc:"[64]byte"`
668 NextName []byte `struc:"[64]byte"`
671 func (*GetNextIndex) GetMessageName() string {
672 return "get_next_index"
674 func (*GetNextIndex) GetCrcString() string {
677 func (*GetNextIndex) GetMessageType() api.MessageType {
678 return api.RequestMessage
680 func NewGetNextIndex() api.Message {
681 return &GetNextIndex{}
684 // GetNextIndexReply represents the VPP binary API message 'get_next_index_reply'.
685 // Generated from 'vpe.api.json', line 367:
687 // "get_next_index_reply",
705 // "crc": "0x2ed75f32"
708 type GetNextIndexReply struct {
713 func (*GetNextIndexReply) GetMessageName() string {
714 return "get_next_index_reply"
716 func (*GetNextIndexReply) GetCrcString() string {
719 func (*GetNextIndexReply) GetMessageType() api.MessageType {
720 return api.ReplyMessage
722 func NewGetNextIndexReply() api.Message {
723 return &GetNextIndexReply{}
728 type Services interface {
729 AddNodeNext(*AddNodeNext) (*AddNodeNextReply, error)
730 Cli(*Cli) (*CliReply, error)
731 CliInband(*CliInband) (*CliInbandReply, error)
732 ControlPing(*ControlPing) (*ControlPingReply, error)
733 GetNextIndex(*GetNextIndex) (*GetNextIndexReply, error)
734 GetNodeGraph(*GetNodeGraph) (*GetNodeGraphReply, error)
735 GetNodeIndex(*GetNodeIndex) (*GetNodeIndexReply, error)
736 ShowVersion(*ShowVersion) (*ShowVersionReply, error)
740 api.RegisterMessage((*ControlPing)(nil), "vpe.ControlPing")
741 api.RegisterMessage((*ControlPingReply)(nil), "vpe.ControlPingReply")
742 api.RegisterMessage((*Cli)(nil), "vpe.Cli")
743 api.RegisterMessage((*CliInband)(nil), "vpe.CliInband")
744 api.RegisterMessage((*CliReply)(nil), "vpe.CliReply")
745 api.RegisterMessage((*CliInbandReply)(nil), "vpe.CliInbandReply")
746 api.RegisterMessage((*GetNodeIndex)(nil), "vpe.GetNodeIndex")
747 api.RegisterMessage((*GetNodeIndexReply)(nil), "vpe.GetNodeIndexReply")
748 api.RegisterMessage((*AddNodeNext)(nil), "vpe.AddNodeNext")
749 api.RegisterMessage((*AddNodeNextReply)(nil), "vpe.AddNodeNextReply")
750 api.RegisterMessage((*ShowVersion)(nil), "vpe.ShowVersion")
751 api.RegisterMessage((*ShowVersionReply)(nil), "vpe.ShowVersionReply")
752 api.RegisterMessage((*GetNodeGraph)(nil), "vpe.GetNodeGraph")
753 api.RegisterMessage((*GetNodeGraphReply)(nil), "vpe.GetNodeGraphReply")
754 api.RegisterMessage((*GetNextIndex)(nil), "vpe.GetNextIndex")
755 api.RegisterMessage((*GetNextIndexReply)(nil), "vpe.GetNextIndexReply")