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 api "git.fd.io/govpp.git/api"
15 import struc "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:
24 type Services interface {
25 AddNodeNext(*AddNodeNext) (*AddNodeNextReply, error)
26 Cli(*Cli) (*CliReply, error)
27 CliInband(*CliInband) (*CliInbandReply, error)
28 ControlPing(*ControlPing) (*ControlPingReply, error)
29 GetNextIndex(*GetNextIndex) (*GetNextIndexReply, error)
30 GetNodeGraph(*GetNodeGraph) (*GetNodeGraphReply, error)
31 GetNodeIndex(*GetNodeIndex) (*GetNodeIndexReply, error)
32 ShowThreads(*ShowThreads) (*ShowThreadsReply, error)
33 ShowVersion(*ShowVersion) (*ShowVersionReply, error)
38 // ThreadData represents VPP binary API type 'thread_data':
39 type ThreadData struct {
41 Name []byte `struc:"[64]byte"`
42 Type []byte `struc:"[64]byte"`
49 func (*ThreadData) GetTypeName() string {
52 func (*ThreadData) GetCrcString() string {
58 // AddNodeNext represents VPP binary API message 'add_node_next':
59 type AddNodeNext struct {
60 NodeName []byte `struc:"[64]byte"`
61 NextName []byte `struc:"[64]byte"`
64 func (*AddNodeNext) GetMessageName() string {
65 return "add_node_next"
67 func (*AddNodeNext) GetCrcString() string {
70 func (*AddNodeNext) GetMessageType() api.MessageType {
71 return api.RequestMessage
74 // AddNodeNextReply represents VPP binary API message 'add_node_next_reply':
75 type AddNodeNextReply struct {
80 func (*AddNodeNextReply) GetMessageName() string {
81 return "add_node_next_reply"
83 func (*AddNodeNextReply) GetCrcString() string {
86 func (*AddNodeNextReply) GetMessageType() api.MessageType {
87 return api.ReplyMessage
90 // Cli represents VPP binary API message 'cli':
95 func (*Cli) GetMessageName() string {
98 func (*Cli) GetCrcString() string {
101 func (*Cli) GetMessageType() api.MessageType {
102 return api.RequestMessage
105 // CliInband represents VPP binary API message 'cli_inband':
106 type CliInband struct {
107 XXX_CmdLen uint32 `struc:"sizeof=Cmd"`
111 func (*CliInband) GetMessageName() string {
114 func (*CliInband) GetCrcString() string {
117 func (*CliInband) GetMessageType() api.MessageType {
118 return api.RequestMessage
121 // CliInbandReply represents VPP binary API message 'cli_inband_reply':
122 type CliInbandReply struct {
124 XXX_ReplyLen uint32 `struc:"sizeof=Reply"`
128 func (*CliInbandReply) GetMessageName() string {
129 return "cli_inband_reply"
131 func (*CliInbandReply) GetCrcString() string {
134 func (*CliInbandReply) GetMessageType() api.MessageType {
135 return api.ReplyMessage
138 // CliReply represents VPP binary API message 'cli_reply':
139 type CliReply struct {
144 func (*CliReply) GetMessageName() string {
147 func (*CliReply) GetCrcString() string {
150 func (*CliReply) GetMessageType() api.MessageType {
151 return api.ReplyMessage
154 // ControlPing represents VPP binary API message 'control_ping':
155 type ControlPing struct{}
157 func (*ControlPing) GetMessageName() string {
158 return "control_ping"
160 func (*ControlPing) GetCrcString() string {
163 func (*ControlPing) GetMessageType() api.MessageType {
164 return api.RequestMessage
167 // ControlPingReply represents VPP binary API message 'control_ping_reply':
168 type ControlPingReply struct {
174 func (*ControlPingReply) GetMessageName() string {
175 return "control_ping_reply"
177 func (*ControlPingReply) GetCrcString() string {
180 func (*ControlPingReply) GetMessageType() api.MessageType {
181 return api.ReplyMessage
184 // GetNextIndex represents VPP binary API message 'get_next_index':
185 type GetNextIndex struct {
186 NodeName []byte `struc:"[64]byte"`
187 NextName []byte `struc:"[64]byte"`
190 func (*GetNextIndex) GetMessageName() string {
191 return "get_next_index"
193 func (*GetNextIndex) GetCrcString() string {
196 func (*GetNextIndex) GetMessageType() api.MessageType {
197 return api.RequestMessage
200 // GetNextIndexReply represents VPP binary API message 'get_next_index_reply':
201 type GetNextIndexReply struct {
206 func (*GetNextIndexReply) GetMessageName() string {
207 return "get_next_index_reply"
209 func (*GetNextIndexReply) GetCrcString() string {
212 func (*GetNextIndexReply) GetMessageType() api.MessageType {
213 return api.ReplyMessage
216 // GetNodeGraph represents VPP binary API message 'get_node_graph':
217 type GetNodeGraph struct{}
219 func (*GetNodeGraph) GetMessageName() string {
220 return "get_node_graph"
222 func (*GetNodeGraph) GetCrcString() string {
225 func (*GetNodeGraph) GetMessageType() api.MessageType {
226 return api.RequestMessage
229 // GetNodeGraphReply represents VPP binary API message 'get_node_graph_reply':
230 type GetNodeGraphReply struct {
235 func (*GetNodeGraphReply) GetMessageName() string {
236 return "get_node_graph_reply"
238 func (*GetNodeGraphReply) GetCrcString() string {
241 func (*GetNodeGraphReply) GetMessageType() api.MessageType {
242 return api.ReplyMessage
245 // GetNodeIndex represents VPP binary API message 'get_node_index':
246 type GetNodeIndex struct {
247 NodeName []byte `struc:"[64]byte"`
250 func (*GetNodeIndex) GetMessageName() string {
251 return "get_node_index"
253 func (*GetNodeIndex) GetCrcString() string {
256 func (*GetNodeIndex) GetMessageType() api.MessageType {
257 return api.RequestMessage
260 // GetNodeIndexReply represents VPP binary API message 'get_node_index_reply':
261 type GetNodeIndexReply struct {
266 func (*GetNodeIndexReply) GetMessageName() string {
267 return "get_node_index_reply"
269 func (*GetNodeIndexReply) GetCrcString() string {
272 func (*GetNodeIndexReply) GetMessageType() api.MessageType {
273 return api.ReplyMessage
276 // ShowThreads represents VPP binary API message 'show_threads':
277 type ShowThreads struct{}
279 func (*ShowThreads) GetMessageName() string {
280 return "show_threads"
282 func (*ShowThreads) GetCrcString() string {
285 func (*ShowThreads) GetMessageType() api.MessageType {
286 return api.RequestMessage
289 // ShowThreadsReply represents VPP binary API message 'show_threads_reply':
290 type ShowThreadsReply struct {
292 Count uint32 `struc:"sizeof=ThreadData"`
293 ThreadData []ThreadData
296 func (*ShowThreadsReply) GetMessageName() string {
297 return "show_threads_reply"
299 func (*ShowThreadsReply) GetCrcString() string {
302 func (*ShowThreadsReply) GetMessageType() api.MessageType {
303 return api.ReplyMessage
306 // ShowVersion represents VPP binary API message 'show_version':
307 type ShowVersion struct{}
309 func (*ShowVersion) GetMessageName() string {
310 return "show_version"
312 func (*ShowVersion) GetCrcString() string {
315 func (*ShowVersion) GetMessageType() api.MessageType {
316 return api.RequestMessage
319 // ShowVersionReply represents VPP binary API message 'show_version_reply':
320 type ShowVersionReply struct {
322 XXX_ProgramLen uint32 `struc:"sizeof=Program"`
324 XXX_VersionLen uint32 `struc:"sizeof=Version"`
326 XXX_BuildDateLen uint32 `struc:"sizeof=BuildDate"`
328 XXX_BuildDirectoryLen uint32 `struc:"sizeof=BuildDirectory"`
329 BuildDirectory string
332 func (*ShowVersionReply) GetMessageName() string {
333 return "show_version_reply"
335 func (*ShowVersionReply) GetCrcString() string {
338 func (*ShowVersionReply) GetMessageType() api.MessageType {
339 return api.ReplyMessage
343 api.RegisterMessage((*AddNodeNext)(nil), "vpe.AddNodeNext")
344 api.RegisterMessage((*AddNodeNextReply)(nil), "vpe.AddNodeNextReply")
345 api.RegisterMessage((*Cli)(nil), "vpe.Cli")
346 api.RegisterMessage((*CliInband)(nil), "vpe.CliInband")
347 api.RegisterMessage((*CliInbandReply)(nil), "vpe.CliInbandReply")
348 api.RegisterMessage((*CliReply)(nil), "vpe.CliReply")
349 api.RegisterMessage((*ControlPing)(nil), "vpe.ControlPing")
350 api.RegisterMessage((*ControlPingReply)(nil), "vpe.ControlPingReply")
351 api.RegisterMessage((*GetNextIndex)(nil), "vpe.GetNextIndex")
352 api.RegisterMessage((*GetNextIndexReply)(nil), "vpe.GetNextIndexReply")
353 api.RegisterMessage((*GetNodeGraph)(nil), "vpe.GetNodeGraph")
354 api.RegisterMessage((*GetNodeGraphReply)(nil), "vpe.GetNodeGraphReply")
355 api.RegisterMessage((*GetNodeIndex)(nil), "vpe.GetNodeIndex")
356 api.RegisterMessage((*GetNodeIndexReply)(nil), "vpe.GetNodeIndexReply")
357 api.RegisterMessage((*ShowThreads)(nil), "vpe.ShowThreads")
358 api.RegisterMessage((*ShowThreadsReply)(nil), "vpe.ShowThreadsReply")
359 api.RegisterMessage((*ShowVersion)(nil), "vpe.ShowVersion")
360 api.RegisterMessage((*ShowVersionReply)(nil), "vpe.ShowVersionReply")