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.
22 var _ = bytes.NewBuffer
26 // ControlPing represents the VPP binary API message 'control_ping'.
27 // Generated from 'vpe.api.json', line 4:
43 // "crc": "0x51077d14"
46 type ControlPing struct{}
48 func (*ControlPing) GetMessageName() string {
51 func (*ControlPing) GetCrcString() string {
54 func (*ControlPing) GetMessageType() api.MessageType {
55 return api.RequestMessage
57 func NewControlPing() api.Message {
61 // ControlPingReply represents the VPP binary API message 'control_ping_reply'.
62 // Generated from 'vpe.api.json', line 22:
64 // "control_ping_reply",
86 // "crc": "0xf6b0b8ca"
89 type ControlPingReply struct {
95 func (*ControlPingReply) GetMessageName() string {
96 return "control_ping_reply"
98 func (*ControlPingReply) GetCrcString() string {
101 func (*ControlPingReply) GetMessageType() api.MessageType {
102 return api.ReplyMessage
104 func NewControlPingReply() api.Message {
105 return &ControlPingReply{}
108 // Cli represents the VPP binary API message 'cli'.
109 // Generated from 'vpe.api.json', line 48:
129 // "crc": "0x23bfbfff"
136 func (*Cli) GetMessageName() string {
139 func (*Cli) GetCrcString() string {
142 func (*Cli) GetMessageType() api.MessageType {
143 return api.RequestMessage
145 func NewCli() api.Message {
149 // CliInband represents the VPP binary API message 'cli_inband'.
150 // Generated from 'vpe.api.json', line 70:
176 // "crc": "0x74e00a49"
179 type CliInband struct {
180 Length uint32 `struc:"sizeof=Cmd"`
184 func (*CliInband) GetMessageName() string {
187 func (*CliInband) GetCrcString() string {
190 func (*CliInband) GetMessageType() api.MessageType {
191 return api.RequestMessage
193 func NewCliInband() api.Message {
197 // CliReply represents the VPP binary API message 'cli_reply'.
198 // Generated from 'vpe.api.json', line 98:
218 // "crc": "0x06d68297"
221 type CliReply struct {
226 func (*CliReply) GetMessageName() string {
229 func (*CliReply) GetCrcString() string {
232 func (*CliReply) GetMessageType() api.MessageType {
233 return api.ReplyMessage
235 func NewCliReply() api.Message {
239 // CliInbandReply represents the VPP binary API message 'cli_inband_reply'.
240 // Generated from 'vpe.api.json', line 120:
242 // "cli_inband_reply",
266 // "crc": "0x1f22bbb8"
269 type CliInbandReply struct {
271 Length uint32 `struc:"sizeof=Reply"`
275 func (*CliInbandReply) GetMessageName() string {
276 return "cli_inband_reply"
278 func (*CliInbandReply) GetCrcString() string {
281 func (*CliInbandReply) GetMessageType() api.MessageType {
282 return api.ReplyMessage
284 func NewCliInbandReply() api.Message {
285 return &CliInbandReply{}
288 // GetNodeIndex represents the VPP binary API message 'get_node_index'.
289 // Generated from 'vpe.api.json', line 148:
310 // "crc": "0x6c9a495d"
313 type GetNodeIndex struct {
314 NodeName []byte `struc:"[64]byte"`
317 func (*GetNodeIndex) GetMessageName() string {
318 return "get_node_index"
320 func (*GetNodeIndex) GetCrcString() string {
323 func (*GetNodeIndex) GetMessageType() api.MessageType {
324 return api.RequestMessage
326 func NewGetNodeIndex() api.Message {
327 return &GetNodeIndex{}
330 // GetNodeIndexReply represents the VPP binary API message 'get_node_index_reply'.
331 // Generated from 'vpe.api.json', line 171:
333 // "get_node_index_reply",
351 // "crc": "0xa8600b89"
354 type GetNodeIndexReply struct {
359 func (*GetNodeIndexReply) GetMessageName() string {
360 return "get_node_index_reply"
362 func (*GetNodeIndexReply) GetCrcString() string {
365 func (*GetNodeIndexReply) GetMessageType() api.MessageType {
366 return api.ReplyMessage
368 func NewGetNodeIndexReply() api.Message {
369 return &GetNodeIndexReply{}
372 // AddNodeNext represents the VPP binary API message 'add_node_next'.
373 // Generated from 'vpe.api.json', line 193:
399 // "crc": "0x9ab92f7a"
402 type AddNodeNext struct {
403 NodeName []byte `struc:"[64]byte"`
404 NextName []byte `struc:"[64]byte"`
407 func (*AddNodeNext) GetMessageName() string {
408 return "add_node_next"
410 func (*AddNodeNext) GetCrcString() string {
413 func (*AddNodeNext) GetMessageType() api.MessageType {
414 return api.RequestMessage
416 func NewAddNodeNext() api.Message {
417 return &AddNodeNext{}
420 // AddNodeNextReply represents the VPP binary API message 'add_node_next_reply'.
421 // Generated from 'vpe.api.json', line 221:
423 // "add_node_next_reply",
441 // "crc": "0x2ed75f32"
444 type AddNodeNextReply struct {
449 func (*AddNodeNextReply) GetMessageName() string {
450 return "add_node_next_reply"
452 func (*AddNodeNextReply) GetCrcString() string {
455 func (*AddNodeNextReply) GetMessageType() api.MessageType {
456 return api.ReplyMessage
458 func NewAddNodeNextReply() api.Message {
459 return &AddNodeNextReply{}
462 // ShowVersion represents the VPP binary API message 'show_version'.
463 // Generated from 'vpe.api.json', line 243:
479 // "crc": "0x51077d14"
482 type ShowVersion struct{}
484 func (*ShowVersion) GetMessageName() string {
485 return "show_version"
487 func (*ShowVersion) GetCrcString() string {
490 func (*ShowVersion) GetMessageType() api.MessageType {
491 return api.RequestMessage
493 func NewShowVersion() api.Message {
494 return &ShowVersion{}
497 // ShowVersionReply represents the VPP binary API message 'show_version_reply'.
498 // Generated from 'vpe.api.json', line 261:
500 // "show_version_reply",
530 // "build_directory",
534 // "crc": "0x8b5a13b4"
537 type ShowVersionReply struct {
539 Program []byte `struc:"[32]byte"`
540 Version []byte `struc:"[32]byte"`
541 BuildDate []byte `struc:"[32]byte"`
542 BuildDirectory []byte `struc:"[256]byte"`
545 func (*ShowVersionReply) GetMessageName() string {
546 return "show_version_reply"
548 func (*ShowVersionReply) GetCrcString() string {
551 func (*ShowVersionReply) GetMessageType() api.MessageType {
552 return api.ReplyMessage
554 func NewShowVersionReply() api.Message {
555 return &ShowVersionReply{}
558 // GetNodeGraph represents the VPP binary API message 'get_node_graph'.
559 // Generated from 'vpe.api.json', line 299:
575 // "crc": "0x51077d14"
578 type GetNodeGraph struct{}
580 func (*GetNodeGraph) GetMessageName() string {
581 return "get_node_graph"
583 func (*GetNodeGraph) GetCrcString() string {
586 func (*GetNodeGraph) GetMessageType() api.MessageType {
587 return api.RequestMessage
589 func NewGetNodeGraph() api.Message {
590 return &GetNodeGraph{}
593 // GetNodeGraphReply represents the VPP binary API message 'get_node_graph_reply'.
594 // Generated from 'vpe.api.json', line 317:
596 // "get_node_graph_reply",
614 // "crc": "0x06d68297"
617 type GetNodeGraphReply struct {
622 func (*GetNodeGraphReply) GetMessageName() string {
623 return "get_node_graph_reply"
625 func (*GetNodeGraphReply) GetCrcString() string {
628 func (*GetNodeGraphReply) GetMessageType() api.MessageType {
629 return api.ReplyMessage
631 func NewGetNodeGraphReply() api.Message {
632 return &GetNodeGraphReply{}
635 // GetNextIndex represents the VPP binary API message 'get_next_index'.
636 // Generated from 'vpe.api.json', line 339:
662 // "crc": "0x9ab92f7a"
665 type GetNextIndex struct {
666 NodeName []byte `struc:"[64]byte"`
667 NextName []byte `struc:"[64]byte"`
670 func (*GetNextIndex) GetMessageName() string {
671 return "get_next_index"
673 func (*GetNextIndex) GetCrcString() string {
676 func (*GetNextIndex) GetMessageType() api.MessageType {
677 return api.RequestMessage
679 func NewGetNextIndex() api.Message {
680 return &GetNextIndex{}
683 // GetNextIndexReply represents the VPP binary API message 'get_next_index_reply'.
684 // Generated from 'vpe.api.json', line 367:
686 // "get_next_index_reply",
704 // "crc": "0x2ed75f32"
707 type GetNextIndexReply struct {
712 func (*GetNextIndexReply) GetMessageName() string {
713 return "get_next_index_reply"
715 func (*GetNextIndexReply) GetCrcString() string {
718 func (*GetNextIndexReply) GetMessageType() api.MessageType {
719 return api.ReplyMessage
721 func NewGetNextIndexReply() api.Message {
722 return &GetNextIndexReply{}
727 type Services interface {
728 AddNodeNext(*AddNodeNext) (*AddNodeNextReply, error)
729 Cli(*Cli) (*CliReply, error)
730 CliInband(*CliInband) (*CliInbandReply, error)
731 ControlPing(*ControlPing) (*ControlPingReply, error)
732 GetNextIndex(*GetNextIndex) (*GetNextIndexReply, error)
733 GetNodeGraph(*GetNodeGraph) (*GetNodeGraphReply, error)
734 GetNodeIndex(*GetNodeIndex) (*GetNodeIndexReply, error)
735 ShowVersion(*ShowVersion) (*ShowVersionReply, error)
739 api.RegisterMessage((*ControlPing)(nil), "vpe.ControlPing")
740 api.RegisterMessage((*ControlPingReply)(nil), "vpe.ControlPingReply")
741 api.RegisterMessage((*Cli)(nil), "vpe.Cli")
742 api.RegisterMessage((*CliInband)(nil), "vpe.CliInband")
743 api.RegisterMessage((*CliReply)(nil), "vpe.CliReply")
744 api.RegisterMessage((*CliInbandReply)(nil), "vpe.CliInbandReply")
745 api.RegisterMessage((*GetNodeIndex)(nil), "vpe.GetNodeIndex")
746 api.RegisterMessage((*GetNodeIndexReply)(nil), "vpe.GetNodeIndexReply")
747 api.RegisterMessage((*AddNodeNext)(nil), "vpe.AddNodeNext")
748 api.RegisterMessage((*AddNodeNextReply)(nil), "vpe.AddNodeNextReply")
749 api.RegisterMessage((*ShowVersion)(nil), "vpe.ShowVersion")
750 api.RegisterMessage((*ShowVersionReply)(nil), "vpe.ShowVersionReply")
751 api.RegisterMessage((*GetNodeGraph)(nil), "vpe.GetNodeGraph")
752 api.RegisterMessage((*GetNodeGraphReply)(nil), "vpe.GetNodeGraphReply")
753 api.RegisterMessage((*GetNextIndex)(nil), "vpe.GetNextIndex")
754 api.RegisterMessage((*GetNextIndexReply)(nil), "vpe.GetNextIndexReply")