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
23 // Services represents VPP binary API services:
27 // "reply": "cli_inband_reply"
29 // "get_node_index": {
30 // "reply": "get_node_index_reply"
33 // "reply": "cli_reply"
36 // "reply": "show_version_reply"
38 // "get_node_graph": {
39 // "reply": "get_node_graph_reply"
41 // "get_next_index": {
42 // "reply": "get_next_index_reply"
45 // "reply": "show_threads_reply"
48 // "reply": "add_node_next_reply"
51 // "reply": "control_ping_reply"
55 type Services interface {
56 AddNodeNext(*AddNodeNext) (*AddNodeNextReply, error)
57 Cli(*Cli) (*CliReply, error)
58 CliInband(*CliInband) (*CliInbandReply, error)
59 ControlPing(*ControlPing) (*ControlPingReply, error)
60 GetNextIndex(*GetNextIndex) (*GetNextIndexReply, error)
61 GetNodeGraph(*GetNodeGraph) (*GetNodeGraphReply, error)
62 GetNodeIndex(*GetNodeIndex) (*GetNodeIndexReply, error)
63 ShowThreads(*ShowThreads) (*ShowThreadsReply, error)
64 ShowVersion(*ShowVersion) (*ShowVersionReply, error)
69 // ThreadData represents VPP binary API type 'thread_data':
75 type ThreadData struct {
77 Name []byte `struc:"[64]byte"`
78 Type []byte `struc:"[64]byte"`
85 func (*ThreadData) GetTypeName() string {
88 func (*ThreadData) GetCrcString() string {
94 // AddNodeNext represents VPP binary API message 'add_node_next':
120 // "crc": "0x9ab92f7a"
123 type AddNodeNext struct {
124 NodeName []byte `struc:"[64]byte"`
125 NextName []byte `struc:"[64]byte"`
128 func (*AddNodeNext) GetMessageName() string {
129 return "add_node_next"
131 func (*AddNodeNext) GetCrcString() string {
134 func (*AddNodeNext) GetMessageType() api.MessageType {
135 return api.RequestMessage
138 // AddNodeNextReply represents VPP binary API message 'add_node_next_reply':
140 // "add_node_next_reply",
158 // "crc": "0x2ed75f32"
161 type AddNodeNextReply struct {
166 func (*AddNodeNextReply) GetMessageName() string {
167 return "add_node_next_reply"
169 func (*AddNodeNextReply) GetCrcString() string {
172 func (*AddNodeNextReply) GetMessageType() api.MessageType {
173 return api.ReplyMessage
176 // Cli represents VPP binary API message 'cli':
196 // "crc": "0x23bfbfff"
203 func (*Cli) GetMessageName() string {
206 func (*Cli) GetCrcString() string {
209 func (*Cli) GetMessageType() api.MessageType {
210 return api.RequestMessage
213 // CliInband represents VPP binary API message 'cli_inband':
233 // "crc": "0xb1ad59b3"
236 type CliInband struct {
237 XXX_CmdLen uint32 `struc:"sizeof=Cmd"`
241 func (*CliInband) GetMessageName() string {
244 func (*CliInband) GetCrcString() string {
247 func (*CliInband) GetMessageType() api.MessageType {
248 return api.RequestMessage
251 // CliInbandReply represents VPP binary API message 'cli_inband_reply':
253 // "cli_inband_reply",
271 // "crc": "0x6d3c80a4"
274 type CliInbandReply struct {
276 XXX_ReplyLen uint32 `struc:"sizeof=Reply"`
280 func (*CliInbandReply) GetMessageName() string {
281 return "cli_inband_reply"
283 func (*CliInbandReply) GetCrcString() string {
286 func (*CliInbandReply) GetMessageType() api.MessageType {
287 return api.ReplyMessage
290 // CliReply represents VPP binary API message 'cli_reply':
310 // "crc": "0x06d68297"
313 type CliReply struct {
318 func (*CliReply) GetMessageName() string {
321 func (*CliReply) GetCrcString() string {
324 func (*CliReply) GetMessageType() api.MessageType {
325 return api.ReplyMessage
328 // ControlPing represents VPP binary API message 'control_ping':
344 // "crc": "0x51077d14"
347 type ControlPing struct{}
349 func (*ControlPing) GetMessageName() string {
350 return "control_ping"
352 func (*ControlPing) GetCrcString() string {
355 func (*ControlPing) GetMessageType() api.MessageType {
356 return api.RequestMessage
359 // ControlPingReply represents VPP binary API message 'control_ping_reply':
361 // "control_ping_reply",
383 // "crc": "0xf6b0b8ca"
386 type ControlPingReply struct {
392 func (*ControlPingReply) GetMessageName() string {
393 return "control_ping_reply"
395 func (*ControlPingReply) GetCrcString() string {
398 func (*ControlPingReply) GetMessageType() api.MessageType {
399 return api.ReplyMessage
402 // GetNextIndex represents VPP binary API message 'get_next_index':
428 // "crc": "0x9ab92f7a"
431 type GetNextIndex struct {
432 NodeName []byte `struc:"[64]byte"`
433 NextName []byte `struc:"[64]byte"`
436 func (*GetNextIndex) GetMessageName() string {
437 return "get_next_index"
439 func (*GetNextIndex) GetCrcString() string {
442 func (*GetNextIndex) GetMessageType() api.MessageType {
443 return api.RequestMessage
446 // GetNextIndexReply represents VPP binary API message 'get_next_index_reply':
448 // "get_next_index_reply",
466 // "crc": "0x2ed75f32"
469 type GetNextIndexReply struct {
474 func (*GetNextIndexReply) GetMessageName() string {
475 return "get_next_index_reply"
477 func (*GetNextIndexReply) GetCrcString() string {
480 func (*GetNextIndexReply) GetMessageType() api.MessageType {
481 return api.ReplyMessage
484 // GetNodeGraph represents VPP binary API message 'get_node_graph':
500 // "crc": "0x51077d14"
503 type GetNodeGraph struct{}
505 func (*GetNodeGraph) GetMessageName() string {
506 return "get_node_graph"
508 func (*GetNodeGraph) GetCrcString() string {
511 func (*GetNodeGraph) GetMessageType() api.MessageType {
512 return api.RequestMessage
515 // GetNodeGraphReply represents VPP binary API message 'get_node_graph_reply':
517 // "get_node_graph_reply",
535 // "crc": "0x06d68297"
538 type GetNodeGraphReply struct {
543 func (*GetNodeGraphReply) GetMessageName() string {
544 return "get_node_graph_reply"
546 func (*GetNodeGraphReply) GetCrcString() string {
549 func (*GetNodeGraphReply) GetMessageType() api.MessageType {
550 return api.ReplyMessage
553 // GetNodeIndex represents VPP binary API message 'get_node_index':
574 // "crc": "0x6c9a495d"
577 type GetNodeIndex struct {
578 NodeName []byte `struc:"[64]byte"`
581 func (*GetNodeIndex) GetMessageName() string {
582 return "get_node_index"
584 func (*GetNodeIndex) GetCrcString() string {
587 func (*GetNodeIndex) GetMessageType() api.MessageType {
588 return api.RequestMessage
591 // GetNodeIndexReply represents VPP binary API message 'get_node_index_reply':
593 // "get_node_index_reply",
611 // "crc": "0xa8600b89"
614 type GetNodeIndexReply struct {
619 func (*GetNodeIndexReply) GetMessageName() string {
620 return "get_node_index_reply"
622 func (*GetNodeIndexReply) GetCrcString() string {
625 func (*GetNodeIndexReply) GetMessageType() api.MessageType {
626 return api.ReplyMessage
629 // ShowThreads represents VPP binary API message 'show_threads':
645 // "crc": "0x51077d14"
648 type ShowThreads struct{}
650 func (*ShowThreads) GetMessageName() string {
651 return "show_threads"
653 func (*ShowThreads) GetCrcString() string {
656 func (*ShowThreads) GetMessageType() api.MessageType {
657 return api.RequestMessage
660 // ShowThreadsReply represents VPP binary API message 'show_threads_reply':
662 // "show_threads_reply",
680 // "vl_api_thread_data_t",
686 // "crc": "0x6942fb35"
689 type ShowThreadsReply struct {
691 Count uint32 `struc:"sizeof=ThreadData"`
692 ThreadData []ThreadData
695 func (*ShowThreadsReply) GetMessageName() string {
696 return "show_threads_reply"
698 func (*ShowThreadsReply) GetCrcString() string {
701 func (*ShowThreadsReply) GetMessageType() api.MessageType {
702 return api.ReplyMessage
705 // ShowVersion represents VPP binary API message 'show_version':
721 // "crc": "0x51077d14"
724 type ShowVersion struct{}
726 func (*ShowVersion) GetMessageName() string {
727 return "show_version"
729 func (*ShowVersion) GetCrcString() string {
732 func (*ShowVersion) GetMessageType() api.MessageType {
733 return api.RequestMessage
736 // ShowVersionReply represents VPP binary API message 'show_version_reply':
738 // "show_version_reply",
768 // "crc": "0xb9bcf6df"
771 type ShowVersionReply struct {
773 XXX_ProgramLen uint32 `struc:"sizeof=Program"`
775 XXX_VersionLen uint32 `struc:"sizeof=Version"`
777 XXX_BuildDateLen uint32 `struc:"sizeof=BuildDate"`
779 XXX_BuildDirectoryLen uint32 `struc:"sizeof=BuildDirectory"`
780 BuildDirectory string
783 func (*ShowVersionReply) GetMessageName() string {
784 return "show_version_reply"
786 func (*ShowVersionReply) GetCrcString() string {
789 func (*ShowVersionReply) GetMessageType() api.MessageType {
790 return api.ReplyMessage
794 api.RegisterMessage((*AddNodeNext)(nil), "vpe.AddNodeNext")
795 api.RegisterMessage((*AddNodeNextReply)(nil), "vpe.AddNodeNextReply")
796 api.RegisterMessage((*Cli)(nil), "vpe.Cli")
797 api.RegisterMessage((*CliInband)(nil), "vpe.CliInband")
798 api.RegisterMessage((*CliInbandReply)(nil), "vpe.CliInbandReply")
799 api.RegisterMessage((*CliReply)(nil), "vpe.CliReply")
800 api.RegisterMessage((*ControlPing)(nil), "vpe.ControlPing")
801 api.RegisterMessage((*ControlPingReply)(nil), "vpe.ControlPingReply")
802 api.RegisterMessage((*GetNextIndex)(nil), "vpe.GetNextIndex")
803 api.RegisterMessage((*GetNextIndexReply)(nil), "vpe.GetNextIndexReply")
804 api.RegisterMessage((*GetNodeGraph)(nil), "vpe.GetNodeGraph")
805 api.RegisterMessage((*GetNodeGraphReply)(nil), "vpe.GetNodeGraphReply")
806 api.RegisterMessage((*GetNodeIndex)(nil), "vpe.GetNodeIndex")
807 api.RegisterMessage((*GetNodeIndexReply)(nil), "vpe.GetNodeIndexReply")
808 api.RegisterMessage((*ShowThreads)(nil), "vpe.ShowThreads")
809 api.RegisterMessage((*ShowThreadsReply)(nil), "vpe.ShowThreadsReply")
810 api.RegisterMessage((*ShowVersion)(nil), "vpe.ShowVersion")
811 api.RegisterMessage((*ShowVersionReply)(nil), "vpe.ShowVersionReply")