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:
15 import "git.fd.io/govpp.git/api"
16 import "github.com/lunixbochs/struc"
19 // Reference imports to suppress errors if they are not otherwise used.
20 var _ = api.RegisterMessage
22 var _ = bytes.NewBuffer
24 // Services represents VPP binary API services:
28 // "reply": "cli_inband_reply"
30 // "get_node_index": {
31 // "reply": "get_node_index_reply"
34 // "reply": "cli_reply"
37 // "reply": "show_version_reply"
39 // "get_node_graph": {
40 // "reply": "get_node_graph_reply"
42 // "get_next_index": {
43 // "reply": "get_next_index_reply"
46 // "reply": "show_threads_reply"
49 // "reply": "add_node_next_reply"
52 // "reply": "control_ping_reply"
56 type Services interface {
57 AddNodeNext(*AddNodeNext) (*AddNodeNextReply, error)
58 Cli(*Cli) (*CliReply, error)
59 CliInband(*CliInband) (*CliInbandReply, error)
60 ControlPing(*ControlPing) (*ControlPingReply, error)
61 GetNextIndex(*GetNextIndex) (*GetNextIndexReply, error)
62 GetNodeGraph(*GetNodeGraph) (*GetNodeGraphReply, error)
63 GetNodeIndex(*GetNodeIndex) (*GetNodeIndexReply, error)
64 ShowThreads(*ShowThreads) (*ShowThreadsReply, error)
65 ShowVersion(*ShowVersion) (*ShowVersionReply, error)
70 // ThreadData represents VPP binary API type 'thread_data':
76 type ThreadData struct {
78 Name []byte `struc:"[64]byte"`
79 Type []byte `struc:"[64]byte"`
86 func (*ThreadData) GetTypeName() string {
89 func (*ThreadData) GetCrcString() string {
95 // ControlPing represents VPP binary API message 'control_ping':
111 // "crc": "0x51077d14"
114 type ControlPing struct{}
116 func (*ControlPing) GetMessageName() string {
117 return "control_ping"
119 func (*ControlPing) GetCrcString() string {
122 func (*ControlPing) GetMessageType() api.MessageType {
123 return api.RequestMessage
126 // ControlPingReply represents VPP binary API message 'control_ping_reply':
128 // "control_ping_reply",
150 // "crc": "0xf6b0b8ca"
153 type ControlPingReply struct {
159 func (*ControlPingReply) GetMessageName() string {
160 return "control_ping_reply"
162 func (*ControlPingReply) GetCrcString() string {
165 func (*ControlPingReply) GetMessageType() api.MessageType {
166 return api.ReplyMessage
169 // Cli represents VPP binary API message 'cli':
189 // "crc": "0x23bfbfff"
196 func (*Cli) GetMessageName() string {
199 func (*Cli) GetCrcString() string {
202 func (*Cli) GetMessageType() api.MessageType {
203 return api.RequestMessage
206 // CliInband represents VPP binary API message 'cli_inband':
226 // "crc": "0xb1ad59b3"
229 type CliInband struct {
230 XXX_CmdLen uint32 `struc:"sizeof=Cmd"`
234 func (*CliInband) GetMessageName() string {
237 func (*CliInband) GetCrcString() string {
240 func (*CliInband) GetMessageType() api.MessageType {
241 return api.RequestMessage
244 // CliReply represents VPP binary API message 'cli_reply':
264 // "crc": "0x06d68297"
267 type CliReply struct {
272 func (*CliReply) GetMessageName() string {
275 func (*CliReply) GetCrcString() string {
278 func (*CliReply) GetMessageType() api.MessageType {
279 return api.ReplyMessage
282 // CliInbandReply represents VPP binary API message 'cli_inband_reply':
284 // "cli_inband_reply",
302 // "crc": "0x6d3c80a4"
305 type CliInbandReply struct {
307 XXX_ReplyLen uint32 `struc:"sizeof=Reply"`
311 func (*CliInbandReply) GetMessageName() string {
312 return "cli_inband_reply"
314 func (*CliInbandReply) GetCrcString() string {
317 func (*CliInbandReply) GetMessageType() api.MessageType {
318 return api.ReplyMessage
321 // GetNodeIndex represents VPP binary API message 'get_node_index':
342 // "crc": "0x6c9a495d"
345 type GetNodeIndex struct {
346 NodeName []byte `struc:"[64]byte"`
349 func (*GetNodeIndex) GetMessageName() string {
350 return "get_node_index"
352 func (*GetNodeIndex) GetCrcString() string {
355 func (*GetNodeIndex) GetMessageType() api.MessageType {
356 return api.RequestMessage
359 // GetNodeIndexReply represents VPP binary API message 'get_node_index_reply':
361 // "get_node_index_reply",
379 // "crc": "0xa8600b89"
382 type GetNodeIndexReply struct {
387 func (*GetNodeIndexReply) GetMessageName() string {
388 return "get_node_index_reply"
390 func (*GetNodeIndexReply) GetCrcString() string {
393 func (*GetNodeIndexReply) GetMessageType() api.MessageType {
394 return api.ReplyMessage
397 // AddNodeNext represents VPP binary API message 'add_node_next':
423 // "crc": "0x9ab92f7a"
426 type AddNodeNext struct {
427 NodeName []byte `struc:"[64]byte"`
428 NextName []byte `struc:"[64]byte"`
431 func (*AddNodeNext) GetMessageName() string {
432 return "add_node_next"
434 func (*AddNodeNext) GetCrcString() string {
437 func (*AddNodeNext) GetMessageType() api.MessageType {
438 return api.RequestMessage
441 // AddNodeNextReply represents VPP binary API message 'add_node_next_reply':
443 // "add_node_next_reply",
461 // "crc": "0x2ed75f32"
464 type AddNodeNextReply struct {
469 func (*AddNodeNextReply) GetMessageName() string {
470 return "add_node_next_reply"
472 func (*AddNodeNextReply) GetCrcString() string {
475 func (*AddNodeNextReply) GetMessageType() api.MessageType {
476 return api.ReplyMessage
479 // ShowVersion represents VPP binary API message 'show_version':
495 // "crc": "0x51077d14"
498 type ShowVersion struct{}
500 func (*ShowVersion) GetMessageName() string {
501 return "show_version"
503 func (*ShowVersion) GetCrcString() string {
506 func (*ShowVersion) GetMessageType() api.MessageType {
507 return api.RequestMessage
510 // ShowVersionReply represents VPP binary API message 'show_version_reply':
512 // "show_version_reply",
542 // "crc": "0xb9bcf6df"
545 type ShowVersionReply struct {
547 XXX_ProgramLen uint32 `struc:"sizeof=Program"`
549 XXX_VersionLen uint32 `struc:"sizeof=Version"`
551 XXX_BuildDateLen uint32 `struc:"sizeof=BuildDate"`
553 XXX_BuildDirectoryLen uint32 `struc:"sizeof=BuildDirectory"`
554 BuildDirectory string
557 func (*ShowVersionReply) GetMessageName() string {
558 return "show_version_reply"
560 func (*ShowVersionReply) GetCrcString() string {
563 func (*ShowVersionReply) GetMessageType() api.MessageType {
564 return api.ReplyMessage
567 // ShowThreads represents VPP binary API message 'show_threads':
583 // "crc": "0x51077d14"
586 type ShowThreads struct{}
588 func (*ShowThreads) GetMessageName() string {
589 return "show_threads"
591 func (*ShowThreads) GetCrcString() string {
594 func (*ShowThreads) GetMessageType() api.MessageType {
595 return api.RequestMessage
598 // ShowThreadsReply represents VPP binary API message 'show_threads_reply':
600 // "show_threads_reply",
618 // "vl_api_thread_data_t",
624 // "crc": "0x6942fb35"
627 type ShowThreadsReply struct {
629 Count uint32 `struc:"sizeof=ThreadData"`
630 ThreadData []ThreadData
633 func (*ShowThreadsReply) GetMessageName() string {
634 return "show_threads_reply"
636 func (*ShowThreadsReply) GetCrcString() string {
639 func (*ShowThreadsReply) GetMessageType() api.MessageType {
640 return api.ReplyMessage
643 // GetNodeGraph represents VPP binary API message 'get_node_graph':
659 // "crc": "0x51077d14"
662 type GetNodeGraph struct{}
664 func (*GetNodeGraph) GetMessageName() string {
665 return "get_node_graph"
667 func (*GetNodeGraph) GetCrcString() string {
670 func (*GetNodeGraph) GetMessageType() api.MessageType {
671 return api.RequestMessage
674 // GetNodeGraphReply represents VPP binary API message 'get_node_graph_reply':
676 // "get_node_graph_reply",
694 // "crc": "0x06d68297"
697 type GetNodeGraphReply struct {
702 func (*GetNodeGraphReply) GetMessageName() string {
703 return "get_node_graph_reply"
705 func (*GetNodeGraphReply) GetCrcString() string {
708 func (*GetNodeGraphReply) GetMessageType() api.MessageType {
709 return api.ReplyMessage
712 // GetNextIndex represents VPP binary API message 'get_next_index':
738 // "crc": "0x9ab92f7a"
741 type GetNextIndex struct {
742 NodeName []byte `struc:"[64]byte"`
743 NextName []byte `struc:"[64]byte"`
746 func (*GetNextIndex) GetMessageName() string {
747 return "get_next_index"
749 func (*GetNextIndex) GetCrcString() string {
752 func (*GetNextIndex) GetMessageType() api.MessageType {
753 return api.RequestMessage
756 // GetNextIndexReply represents VPP binary API message 'get_next_index_reply':
758 // "get_next_index_reply",
776 // "crc": "0x2ed75f32"
779 type GetNextIndexReply struct {
784 func (*GetNextIndexReply) GetMessageName() string {
785 return "get_next_index_reply"
787 func (*GetNextIndexReply) GetCrcString() string {
790 func (*GetNextIndexReply) GetMessageType() api.MessageType {
791 return api.ReplyMessage
795 api.RegisterMessage((*ControlPing)(nil), "vpe.ControlPing")
796 api.RegisterMessage((*ControlPingReply)(nil), "vpe.ControlPingReply")
797 api.RegisterMessage((*Cli)(nil), "vpe.Cli")
798 api.RegisterMessage((*CliInband)(nil), "vpe.CliInband")
799 api.RegisterMessage((*CliReply)(nil), "vpe.CliReply")
800 api.RegisterMessage((*CliInbandReply)(nil), "vpe.CliInbandReply")
801 api.RegisterMessage((*GetNodeIndex)(nil), "vpe.GetNodeIndex")
802 api.RegisterMessage((*GetNodeIndexReply)(nil), "vpe.GetNodeIndexReply")
803 api.RegisterMessage((*AddNodeNext)(nil), "vpe.AddNodeNext")
804 api.RegisterMessage((*AddNodeNextReply)(nil), "vpe.AddNodeNextReply")
805 api.RegisterMessage((*ShowVersion)(nil), "vpe.ShowVersion")
806 api.RegisterMessage((*ShowVersionReply)(nil), "vpe.ShowVersionReply")
807 api.RegisterMessage((*ShowThreads)(nil), "vpe.ShowThreads")
808 api.RegisterMessage((*ShowThreadsReply)(nil), "vpe.ShowThreadsReply")
809 api.RegisterMessage((*GetNodeGraph)(nil), "vpe.GetNodeGraph")
810 api.RegisterMessage((*GetNodeGraphReply)(nil), "vpe.GetNodeGraphReply")
811 api.RegisterMessage((*GetNextIndex)(nil), "vpe.GetNextIndex")
812 api.RegisterMessage((*GetNextIndexReply)(nil), "vpe.GetNextIndexReply")