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':
232 // "crc": "0x74e00a49"
235 type CliInband struct {
236 Length uint32 `struc:"sizeof=Cmd"`
240 func (*CliInband) GetMessageName() string {
243 func (*CliInband) GetCrcString() string {
246 func (*CliInband) GetMessageType() api.MessageType {
247 return api.RequestMessage
250 // CliReply represents VPP binary API message 'cli_reply':
270 // "crc": "0x06d68297"
273 type CliReply struct {
278 func (*CliReply) GetMessageName() string {
281 func (*CliReply) GetCrcString() string {
284 func (*CliReply) GetMessageType() api.MessageType {
285 return api.ReplyMessage
288 // CliInbandReply represents VPP binary API message 'cli_inband_reply':
290 // "cli_inband_reply",
314 // "crc": "0x1f22bbb8"
317 type CliInbandReply struct {
319 Length uint32 `struc:"sizeof=Reply"`
323 func (*CliInbandReply) GetMessageName() string {
324 return "cli_inband_reply"
326 func (*CliInbandReply) GetCrcString() string {
329 func (*CliInbandReply) GetMessageType() api.MessageType {
330 return api.ReplyMessage
333 // GetNodeIndex represents VPP binary API message 'get_node_index':
354 // "crc": "0x6c9a495d"
357 type GetNodeIndex struct {
358 NodeName []byte `struc:"[64]byte"`
361 func (*GetNodeIndex) GetMessageName() string {
362 return "get_node_index"
364 func (*GetNodeIndex) GetCrcString() string {
367 func (*GetNodeIndex) GetMessageType() api.MessageType {
368 return api.RequestMessage
371 // GetNodeIndexReply represents VPP binary API message 'get_node_index_reply':
373 // "get_node_index_reply",
391 // "crc": "0xa8600b89"
394 type GetNodeIndexReply struct {
399 func (*GetNodeIndexReply) GetMessageName() string {
400 return "get_node_index_reply"
402 func (*GetNodeIndexReply) GetCrcString() string {
405 func (*GetNodeIndexReply) GetMessageType() api.MessageType {
406 return api.ReplyMessage
409 // AddNodeNext represents VPP binary API message 'add_node_next':
435 // "crc": "0x9ab92f7a"
438 type AddNodeNext struct {
439 NodeName []byte `struc:"[64]byte"`
440 NextName []byte `struc:"[64]byte"`
443 func (*AddNodeNext) GetMessageName() string {
444 return "add_node_next"
446 func (*AddNodeNext) GetCrcString() string {
449 func (*AddNodeNext) GetMessageType() api.MessageType {
450 return api.RequestMessage
453 // AddNodeNextReply represents VPP binary API message 'add_node_next_reply':
455 // "add_node_next_reply",
473 // "crc": "0x2ed75f32"
476 type AddNodeNextReply struct {
481 func (*AddNodeNextReply) GetMessageName() string {
482 return "add_node_next_reply"
484 func (*AddNodeNextReply) GetCrcString() string {
487 func (*AddNodeNextReply) GetMessageType() api.MessageType {
488 return api.ReplyMessage
491 // ShowVersion represents VPP binary API message 'show_version':
507 // "crc": "0x51077d14"
510 type ShowVersion struct{}
512 func (*ShowVersion) GetMessageName() string {
513 return "show_version"
515 func (*ShowVersion) GetCrcString() string {
518 func (*ShowVersion) GetMessageType() api.MessageType {
519 return api.RequestMessage
522 // ShowVersionReply represents VPP binary API message 'show_version_reply':
524 // "show_version_reply",
554 // "build_directory",
558 // "crc": "0x8b5a13b4"
561 type ShowVersionReply struct {
563 Program []byte `struc:"[32]byte"`
564 Version []byte `struc:"[32]byte"`
565 BuildDate []byte `struc:"[32]byte"`
566 BuildDirectory []byte `struc:"[256]byte"`
569 func (*ShowVersionReply) GetMessageName() string {
570 return "show_version_reply"
572 func (*ShowVersionReply) GetCrcString() string {
575 func (*ShowVersionReply) GetMessageType() api.MessageType {
576 return api.ReplyMessage
579 // ShowThreads represents VPP binary API message 'show_threads':
595 // "crc": "0x51077d14"
598 type ShowThreads struct{}
600 func (*ShowThreads) GetMessageName() string {
601 return "show_threads"
603 func (*ShowThreads) GetCrcString() string {
606 func (*ShowThreads) GetMessageType() api.MessageType {
607 return api.RequestMessage
610 // ShowThreadsReply represents VPP binary API message 'show_threads_reply':
612 // "show_threads_reply",
630 // "vl_api_thread_data_t",
636 // "crc": "0x6942fb35"
639 type ShowThreadsReply struct {
641 Count uint32 `struc:"sizeof=ThreadData"`
642 ThreadData []ThreadData
645 func (*ShowThreadsReply) GetMessageName() string {
646 return "show_threads_reply"
648 func (*ShowThreadsReply) GetCrcString() string {
651 func (*ShowThreadsReply) GetMessageType() api.MessageType {
652 return api.ReplyMessage
655 // GetNodeGraph represents VPP binary API message 'get_node_graph':
671 // "crc": "0x51077d14"
674 type GetNodeGraph struct{}
676 func (*GetNodeGraph) GetMessageName() string {
677 return "get_node_graph"
679 func (*GetNodeGraph) GetCrcString() string {
682 func (*GetNodeGraph) GetMessageType() api.MessageType {
683 return api.RequestMessage
686 // GetNodeGraphReply represents VPP binary API message 'get_node_graph_reply':
688 // "get_node_graph_reply",
706 // "crc": "0x06d68297"
709 type GetNodeGraphReply struct {
714 func (*GetNodeGraphReply) GetMessageName() string {
715 return "get_node_graph_reply"
717 func (*GetNodeGraphReply) GetCrcString() string {
720 func (*GetNodeGraphReply) GetMessageType() api.MessageType {
721 return api.ReplyMessage
724 // GetNextIndex represents VPP binary API message 'get_next_index':
750 // "crc": "0x9ab92f7a"
753 type GetNextIndex struct {
754 NodeName []byte `struc:"[64]byte"`
755 NextName []byte `struc:"[64]byte"`
758 func (*GetNextIndex) GetMessageName() string {
759 return "get_next_index"
761 func (*GetNextIndex) GetCrcString() string {
764 func (*GetNextIndex) GetMessageType() api.MessageType {
765 return api.RequestMessage
768 // GetNextIndexReply represents VPP binary API message 'get_next_index_reply':
770 // "get_next_index_reply",
788 // "crc": "0x2ed75f32"
791 type GetNextIndexReply struct {
796 func (*GetNextIndexReply) GetMessageName() string {
797 return "get_next_index_reply"
799 func (*GetNextIndexReply) GetCrcString() string {
802 func (*GetNextIndexReply) GetMessageType() api.MessageType {
803 return api.ReplyMessage
807 api.RegisterMessage((*ControlPing)(nil), "vpe.ControlPing")
808 api.RegisterMessage((*ControlPingReply)(nil), "vpe.ControlPingReply")
809 api.RegisterMessage((*Cli)(nil), "vpe.Cli")
810 api.RegisterMessage((*CliInband)(nil), "vpe.CliInband")
811 api.RegisterMessage((*CliReply)(nil), "vpe.CliReply")
812 api.RegisterMessage((*CliInbandReply)(nil), "vpe.CliInbandReply")
813 api.RegisterMessage((*GetNodeIndex)(nil), "vpe.GetNodeIndex")
814 api.RegisterMessage((*GetNodeIndexReply)(nil), "vpe.GetNodeIndexReply")
815 api.RegisterMessage((*AddNodeNext)(nil), "vpe.AddNodeNext")
816 api.RegisterMessage((*AddNodeNextReply)(nil), "vpe.AddNodeNextReply")
817 api.RegisterMessage((*ShowVersion)(nil), "vpe.ShowVersion")
818 api.RegisterMessage((*ShowVersionReply)(nil), "vpe.ShowVersionReply")
819 api.RegisterMessage((*ShowThreads)(nil), "vpe.ShowThreads")
820 api.RegisterMessage((*ShowThreadsReply)(nil), "vpe.ShowThreadsReply")
821 api.RegisterMessage((*GetNodeGraph)(nil), "vpe.GetNodeGraph")
822 api.RegisterMessage((*GetNodeGraphReply)(nil), "vpe.GetNodeGraphReply")
823 api.RegisterMessage((*GetNextIndex)(nil), "vpe.GetNextIndex")
824 api.RegisterMessage((*GetNextIndexReply)(nil), "vpe.GetNextIndexReply")