1 // Code generated by GoVPP binapi-generator. DO NOT EDIT.
2 // source: vpe.api.json
5 Package vpe is a generated from VPP binary API module 'vpe'.
7 It contains following objects:
14 import "git.fd.io/govpp.git/api"
15 import "github.com/lunixbochs/struc"
18 // Reference imports to suppress errors if they are not otherwise used.
19 var _ = api.RegisterMessage
21 var _ = bytes.NewBuffer
25 // ControlPing represents the VPP binary API message 'control_ping'.
41 // "crc": "0x51077d14"
44 type ControlPing struct{}
46 func (*ControlPing) GetMessageName() string {
49 func (*ControlPing) GetCrcString() string {
52 func (*ControlPing) GetMessageType() api.MessageType {
53 return api.RequestMessage
56 // ControlPingReply represents the VPP binary API message 'control_ping_reply'.
58 // "control_ping_reply",
80 // "crc": "0xf6b0b8ca"
83 type ControlPingReply struct {
89 func (*ControlPingReply) GetMessageName() string {
90 return "control_ping_reply"
92 func (*ControlPingReply) GetCrcString() string {
95 func (*ControlPingReply) GetMessageType() api.MessageType {
96 return api.ReplyMessage
99 // Cli represents the VPP binary API message 'cli'.
119 // "crc": "0x23bfbfff"
126 func (*Cli) GetMessageName() string {
129 func (*Cli) GetCrcString() string {
132 func (*Cli) GetMessageType() api.MessageType {
133 return api.RequestMessage
136 // CliInband represents the VPP binary API message 'cli_inband'.
162 // "crc": "0x74e00a49"
165 type CliInband struct {
166 Length uint32 `struc:"sizeof=Cmd"`
170 func (*CliInband) GetMessageName() string {
173 func (*CliInband) GetCrcString() string {
176 func (*CliInband) GetMessageType() api.MessageType {
177 return api.RequestMessage
180 // CliReply represents the VPP binary API message 'cli_reply'.
200 // "crc": "0x06d68297"
203 type CliReply struct {
208 func (*CliReply) GetMessageName() string {
211 func (*CliReply) GetCrcString() string {
214 func (*CliReply) GetMessageType() api.MessageType {
215 return api.ReplyMessage
218 // CliInbandReply represents the VPP binary API message 'cli_inband_reply'.
220 // "cli_inband_reply",
244 // "crc": "0x1f22bbb8"
247 type CliInbandReply struct {
249 Length uint32 `struc:"sizeof=Reply"`
253 func (*CliInbandReply) GetMessageName() string {
254 return "cli_inband_reply"
256 func (*CliInbandReply) GetCrcString() string {
259 func (*CliInbandReply) GetMessageType() api.MessageType {
260 return api.ReplyMessage
263 // GetNodeIndex represents the VPP binary API message 'get_node_index'.
284 // "crc": "0x6c9a495d"
287 type GetNodeIndex struct {
288 NodeName []byte `struc:"[64]byte"`
291 func (*GetNodeIndex) GetMessageName() string {
292 return "get_node_index"
294 func (*GetNodeIndex) GetCrcString() string {
297 func (*GetNodeIndex) GetMessageType() api.MessageType {
298 return api.RequestMessage
301 // GetNodeIndexReply represents the VPP binary API message 'get_node_index_reply'.
303 // "get_node_index_reply",
321 // "crc": "0xa8600b89"
324 type GetNodeIndexReply struct {
329 func (*GetNodeIndexReply) GetMessageName() string {
330 return "get_node_index_reply"
332 func (*GetNodeIndexReply) GetCrcString() string {
335 func (*GetNodeIndexReply) GetMessageType() api.MessageType {
336 return api.ReplyMessage
339 // AddNodeNext represents the VPP binary API message 'add_node_next'.
365 // "crc": "0x9ab92f7a"
368 type AddNodeNext struct {
369 NodeName []byte `struc:"[64]byte"`
370 NextName []byte `struc:"[64]byte"`
373 func (*AddNodeNext) GetMessageName() string {
374 return "add_node_next"
376 func (*AddNodeNext) GetCrcString() string {
379 func (*AddNodeNext) GetMessageType() api.MessageType {
380 return api.RequestMessage
383 // AddNodeNextReply represents the VPP binary API message 'add_node_next_reply'.
385 // "add_node_next_reply",
403 // "crc": "0x2ed75f32"
406 type AddNodeNextReply struct {
411 func (*AddNodeNextReply) GetMessageName() string {
412 return "add_node_next_reply"
414 func (*AddNodeNextReply) GetCrcString() string {
417 func (*AddNodeNextReply) GetMessageType() api.MessageType {
418 return api.ReplyMessage
421 // ShowVersion represents the VPP binary API message 'show_version'.
437 // "crc": "0x51077d14"
440 type ShowVersion struct{}
442 func (*ShowVersion) GetMessageName() string {
443 return "show_version"
445 func (*ShowVersion) GetCrcString() string {
448 func (*ShowVersion) GetMessageType() api.MessageType {
449 return api.RequestMessage
452 // ShowVersionReply represents the VPP binary API message 'show_version_reply'.
454 // "show_version_reply",
484 // "build_directory",
488 // "crc": "0x8b5a13b4"
491 type ShowVersionReply struct {
493 Program []byte `struc:"[32]byte"`
494 Version []byte `struc:"[32]byte"`
495 BuildDate []byte `struc:"[32]byte"`
496 BuildDirectory []byte `struc:"[256]byte"`
499 func (*ShowVersionReply) GetMessageName() string {
500 return "show_version_reply"
502 func (*ShowVersionReply) GetCrcString() string {
505 func (*ShowVersionReply) GetMessageType() api.MessageType {
506 return api.ReplyMessage
509 // GetNodeGraph represents the VPP binary API message 'get_node_graph'.
525 // "crc": "0x51077d14"
528 type GetNodeGraph struct{}
530 func (*GetNodeGraph) GetMessageName() string {
531 return "get_node_graph"
533 func (*GetNodeGraph) GetCrcString() string {
536 func (*GetNodeGraph) GetMessageType() api.MessageType {
537 return api.RequestMessage
540 // GetNodeGraphReply represents the VPP binary API message 'get_node_graph_reply'.
542 // "get_node_graph_reply",
560 // "crc": "0x06d68297"
563 type GetNodeGraphReply struct {
568 func (*GetNodeGraphReply) GetMessageName() string {
569 return "get_node_graph_reply"
571 func (*GetNodeGraphReply) GetCrcString() string {
574 func (*GetNodeGraphReply) GetMessageType() api.MessageType {
575 return api.ReplyMessage
578 // GetNextIndex represents the VPP binary API message 'get_next_index'.
604 // "crc": "0x9ab92f7a"
607 type GetNextIndex struct {
608 NodeName []byte `struc:"[64]byte"`
609 NextName []byte `struc:"[64]byte"`
612 func (*GetNextIndex) GetMessageName() string {
613 return "get_next_index"
615 func (*GetNextIndex) GetCrcString() string {
618 func (*GetNextIndex) GetMessageType() api.MessageType {
619 return api.RequestMessage
622 // GetNextIndexReply represents the VPP binary API message 'get_next_index_reply'.
624 // "get_next_index_reply",
642 // "crc": "0x2ed75f32"
645 type GetNextIndexReply struct {
650 func (*GetNextIndexReply) GetMessageName() string {
651 return "get_next_index_reply"
653 func (*GetNextIndexReply) GetCrcString() string {
656 func (*GetNextIndexReply) GetMessageType() api.MessageType {
657 return api.ReplyMessage
662 type Services interface {
663 AddNodeNext(*AddNodeNext) (*AddNodeNextReply, error)
664 Cli(*Cli) (*CliReply, error)
665 CliInband(*CliInband) (*CliInbandReply, error)
666 ControlPing(*ControlPing) (*ControlPingReply, error)
667 GetNextIndex(*GetNextIndex) (*GetNextIndexReply, error)
668 GetNodeGraph(*GetNodeGraph) (*GetNodeGraphReply, error)
669 GetNodeIndex(*GetNodeIndex) (*GetNodeIndexReply, error)
670 ShowVersion(*ShowVersion) (*ShowVersionReply, error)
674 api.RegisterMessage((*ControlPing)(nil), "vpe.ControlPing")
675 api.RegisterMessage((*ControlPingReply)(nil), "vpe.ControlPingReply")
676 api.RegisterMessage((*Cli)(nil), "vpe.Cli")
677 api.RegisterMessage((*CliInband)(nil), "vpe.CliInband")
678 api.RegisterMessage((*CliReply)(nil), "vpe.CliReply")
679 api.RegisterMessage((*CliInbandReply)(nil), "vpe.CliInbandReply")
680 api.RegisterMessage((*GetNodeIndex)(nil), "vpe.GetNodeIndex")
681 api.RegisterMessage((*GetNodeIndexReply)(nil), "vpe.GetNodeIndexReply")
682 api.RegisterMessage((*AddNodeNext)(nil), "vpe.AddNodeNext")
683 api.RegisterMessage((*AddNodeNextReply)(nil), "vpe.AddNodeNextReply")
684 api.RegisterMessage((*ShowVersion)(nil), "vpe.ShowVersion")
685 api.RegisterMessage((*ShowVersionReply)(nil), "vpe.ShowVersionReply")
686 api.RegisterMessage((*GetNodeGraph)(nil), "vpe.GetNodeGraph")
687 api.RegisterMessage((*GetNodeGraphReply)(nil), "vpe.GetNodeGraphReply")
688 api.RegisterMessage((*GetNextIndex)(nil), "vpe.GetNextIndex")
689 api.RegisterMessage((*GetNextIndexReply)(nil), "vpe.GetNextIndexReply")