vpe

package
v3.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package vpe is a generated VPP binary API for 'vpe' module.

It consists of:

 1 enum
 2 aliases
 2 types
26 messages
13 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "vpe"
	// APIVersion is the API version of this module.
	APIVersion = "1.6.0"
	// VersionCrc is the CRC of this module.
	VersionCrc = 0x1bf55581
)

Variables

View Source
var LogLevel_name = map[uint32]string{
	0: "VPE_API_LOG_LEVEL_EMERG",
	1: "VPE_API_LOG_LEVEL_ALERT",
	2: "VPE_API_LOG_LEVEL_CRIT",
	3: "VPE_API_LOG_LEVEL_ERR",
	4: "VPE_API_LOG_LEVEL_WARNING",
	5: "VPE_API_LOG_LEVEL_NOTICE",
	6: "VPE_API_LOG_LEVEL_INFO",
	7: "VPE_API_LOG_LEVEL_DEBUG",
	8: "VPE_API_LOG_LEVEL_DISABLED",
}
View Source
var LogLevel_value = map[string]uint32{
	"VPE_API_LOG_LEVEL_EMERG":    0,
	"VPE_API_LOG_LEVEL_ALERT":    1,
	"VPE_API_LOG_LEVEL_CRIT":     2,
	"VPE_API_LOG_LEVEL_ERR":      3,
	"VPE_API_LOG_LEVEL_WARNING":  4,
	"VPE_API_LOG_LEVEL_NOTICE":   5,
	"VPE_API_LOG_LEVEL_INFO":     6,
	"VPE_API_LOG_LEVEL_DEBUG":    7,
	"VPE_API_LOG_LEVEL_DISABLED": 8,
}

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type AddNodeNext

type AddNodeNext struct {
	NodeName []byte `struc:"[64]byte"`
	NextName []byte `struc:"[64]byte"`
}

AddNodeNext represents VPP binary API message 'add_node_next'.

func (*AddNodeNext) GetCrcString

func (*AddNodeNext) GetCrcString() string

func (*AddNodeNext) GetMessageName

func (*AddNodeNext) GetMessageName() string

func (*AddNodeNext) GetMessageType

func (*AddNodeNext) GetMessageType() api.MessageType

func (*AddNodeNext) Reset

func (m *AddNodeNext) Reset()

type AddNodeNextReply

type AddNodeNextReply struct {
	Retval    int32
	NextIndex uint32
}

AddNodeNextReply represents VPP binary API message 'add_node_next_reply'.

func (*AddNodeNextReply) GetCrcString

func (*AddNodeNextReply) GetCrcString() string

func (*AddNodeNextReply) GetMessageName

func (*AddNodeNextReply) GetMessageName() string

func (*AddNodeNextReply) GetMessageType

func (*AddNodeNextReply) GetMessageType() api.MessageType

func (*AddNodeNextReply) Reset

func (m *AddNodeNextReply) Reset()

type Cli

type Cli struct {
	CmdInShmem uint64
}

Cli represents VPP binary API message 'cli'.

func (*Cli) GetCrcString

func (*Cli) GetCrcString() string

func (*Cli) GetMessageName

func (*Cli) GetMessageName() string

func (*Cli) GetMessageType

func (*Cli) GetMessageType() api.MessageType

func (*Cli) Reset

func (m *Cli) Reset()

type CliInband

type CliInband struct {
	XXX_CmdLen uint32 `struc:"sizeof=Cmd"`
	Cmd        string
}

CliInband represents VPP binary API message 'cli_inband'.

func (*CliInband) GetCrcString

func (*CliInband) GetCrcString() string

func (*CliInband) GetMessageName

func (*CliInband) GetMessageName() string

func (*CliInband) GetMessageType

func (*CliInband) GetMessageType() api.MessageType

func (*CliInband) Reset

func (m *CliInband) Reset()

type CliInbandReply

type CliInbandReply struct {
	Retval       int32
	XXX_ReplyLen uint32 `struc:"sizeof=Reply"`
	Reply        string
}

CliInbandReply represents VPP binary API message 'cli_inband_reply'.

func (*CliInbandReply) GetCrcString

func (*CliInbandReply) GetCrcString() string

func (*CliInbandReply) GetMessageName

func (*CliInbandReply) GetMessageName() string

func (*CliInbandReply) GetMessageType

func (*CliInbandReply) GetMessageType() api.MessageType

func (*CliInbandReply) Reset

func (m *CliInbandReply) Reset()

type CliReply

type CliReply struct {
	Retval       int32
	ReplyInShmem uint64
}

CliReply represents VPP binary API message 'cli_reply'.

func (*CliReply) GetCrcString

func (*CliReply) GetCrcString() string

func (*CliReply) GetMessageName

func (*CliReply) GetMessageName() string

func (*CliReply) GetMessageType

func (*CliReply) GetMessageType() api.MessageType

func (*CliReply) Reset

func (m *CliReply) Reset()

type ControlPing

type ControlPing struct{}

ControlPing represents VPP binary API message 'control_ping'.

func (*ControlPing) GetCrcString

func (*ControlPing) GetCrcString() string

func (*ControlPing) GetMessageName

func (*ControlPing) GetMessageName() string

func (*ControlPing) GetMessageType

func (*ControlPing) GetMessageType() api.MessageType

func (*ControlPing) Reset

func (m *ControlPing) Reset()

type ControlPingReply

type ControlPingReply struct {
	Retval      int32
	ClientIndex uint32
	VpePID      uint32
}

ControlPingReply represents VPP binary API message 'control_ping_reply'.

func (*ControlPingReply) GetCrcString

func (*ControlPingReply) GetCrcString() string

func (*ControlPingReply) GetMessageName

func (*ControlPingReply) GetMessageName() string

func (*ControlPingReply) GetMessageType

func (*ControlPingReply) GetMessageType() api.MessageType

func (*ControlPingReply) Reset

func (m *ControlPingReply) Reset()

type GetF64EndianValue

type GetF64EndianValue struct {
	F64One float64
}

GetF64EndianValue represents VPP binary API message 'get_f64_endian_value'.

func (*GetF64EndianValue) GetCrcString

func (*GetF64EndianValue) GetCrcString() string

func (*GetF64EndianValue) GetMessageName

func (*GetF64EndianValue) GetMessageName() string

func (*GetF64EndianValue) GetMessageType

func (*GetF64EndianValue) GetMessageType() api.MessageType

func (*GetF64EndianValue) Reset

func (m *GetF64EndianValue) Reset()

type GetF64EndianValueReply

type GetF64EndianValueReply struct {
	Retval       uint32
	F64OneResult float64
}

GetF64EndianValueReply represents VPP binary API message 'get_f64_endian_value_reply'.

func (*GetF64EndianValueReply) GetCrcString

func (*GetF64EndianValueReply) GetCrcString() string

func (*GetF64EndianValueReply) GetMessageName

func (*GetF64EndianValueReply) GetMessageName() string

func (*GetF64EndianValueReply) GetMessageType

func (*GetF64EndianValueReply) GetMessageType() api.MessageType

func (*GetF64EndianValueReply) Reset

func (m *GetF64EndianValueReply) Reset()

type GetF64IncrementByOne

type GetF64IncrementByOne struct {
	F64Value float64
}

GetF64IncrementByOne represents VPP binary API message 'get_f64_increment_by_one'.

func (*GetF64IncrementByOne) GetCrcString

func (*GetF64IncrementByOne) GetCrcString() string

func (*GetF64IncrementByOne) GetMessageName

func (*GetF64IncrementByOne) GetMessageName() string

func (*GetF64IncrementByOne) GetMessageType

func (*GetF64IncrementByOne) GetMessageType() api.MessageType

func (*GetF64IncrementByOne) Reset

func (m *GetF64IncrementByOne) Reset()

type GetF64IncrementByOneReply

type GetF64IncrementByOneReply struct {
	Retval   uint32
	F64Value float64
}

GetF64IncrementByOneReply represents VPP binary API message 'get_f64_increment_by_one_reply'.

func (*GetF64IncrementByOneReply) GetCrcString

func (*GetF64IncrementByOneReply) GetCrcString() string

func (*GetF64IncrementByOneReply) GetMessageName

func (*GetF64IncrementByOneReply) GetMessageName() string

func (*GetF64IncrementByOneReply) GetMessageType

func (*GetF64IncrementByOneReply) GetMessageType() api.MessageType

func (*GetF64IncrementByOneReply) Reset

func (m *GetF64IncrementByOneReply) Reset()

type GetNextIndex

type GetNextIndex struct {
	NodeName []byte `struc:"[64]byte"`
	NextName []byte `struc:"[64]byte"`
}

GetNextIndex represents VPP binary API message 'get_next_index'.

func (*GetNextIndex) GetCrcString

func (*GetNextIndex) GetCrcString() string

func (*GetNextIndex) GetMessageName

func (*GetNextIndex) GetMessageName() string

func (*GetNextIndex) GetMessageType

func (*GetNextIndex) GetMessageType() api.MessageType

func (*GetNextIndex) Reset

func (m *GetNextIndex) Reset()

type GetNextIndexReply

type GetNextIndexReply struct {
	Retval    int32
	NextIndex uint32
}

GetNextIndexReply represents VPP binary API message 'get_next_index_reply'.

func (*GetNextIndexReply) GetCrcString

func (*GetNextIndexReply) GetCrcString() string

func (*GetNextIndexReply) GetMessageName

func (*GetNextIndexReply) GetMessageName() string

func (*GetNextIndexReply) GetMessageType

func (*GetNextIndexReply) GetMessageType() api.MessageType

func (*GetNextIndexReply) Reset

func (m *GetNextIndexReply) Reset()

type GetNodeGraph

type GetNodeGraph struct{}

GetNodeGraph represents VPP binary API message 'get_node_graph'.

func (*GetNodeGraph) GetCrcString

func (*GetNodeGraph) GetCrcString() string

func (*GetNodeGraph) GetMessageName

func (*GetNodeGraph) GetMessageName() string

func (*GetNodeGraph) GetMessageType

func (*GetNodeGraph) GetMessageType() api.MessageType

func (*GetNodeGraph) Reset

func (m *GetNodeGraph) Reset()

type GetNodeGraphReply

type GetNodeGraphReply struct {
	Retval       int32
	ReplyInShmem uint64
}

GetNodeGraphReply represents VPP binary API message 'get_node_graph_reply'.

func (*GetNodeGraphReply) GetCrcString

func (*GetNodeGraphReply) GetCrcString() string

func (*GetNodeGraphReply) GetMessageName

func (*GetNodeGraphReply) GetMessageName() string

func (*GetNodeGraphReply) GetMessageType

func (*GetNodeGraphReply) GetMessageType() api.MessageType

func (*GetNodeGraphReply) Reset

func (m *GetNodeGraphReply) Reset()

type GetNodeIndex

type GetNodeIndex struct {
	NodeName []byte `struc:"[64]byte"`
}

GetNodeIndex represents VPP binary API message 'get_node_index'.

func (*GetNodeIndex) GetCrcString

func (*GetNodeIndex) GetCrcString() string

func (*GetNodeIndex) GetMessageName

func (*GetNodeIndex) GetMessageName() string

func (*GetNodeIndex) GetMessageType

func (*GetNodeIndex) GetMessageType() api.MessageType

func (*GetNodeIndex) Reset

func (m *GetNodeIndex) Reset()

type GetNodeIndexReply

type GetNodeIndexReply struct {
	Retval    int32
	NodeIndex uint32
}

GetNodeIndexReply represents VPP binary API message 'get_node_index_reply'.

func (*GetNodeIndexReply) GetCrcString

func (*GetNodeIndexReply) GetCrcString() string

func (*GetNodeIndexReply) GetMessageName

func (*GetNodeIndexReply) GetMessageName() string

func (*GetNodeIndexReply) GetMessageType

func (*GetNodeIndexReply) GetMessageType() api.MessageType

func (*GetNodeIndexReply) Reset

func (m *GetNodeIndexReply) Reset()

type LogDetails

type LogDetails struct {
	Timestamp Timestamp
	Level     LogLevel
	MsgClass  string `struc:"[32]byte"`
	Message   string `struc:"[256]byte"`
}

LogDetails represents VPP binary API message 'log_details'.

func (*LogDetails) GetCrcString

func (*LogDetails) GetCrcString() string

func (*LogDetails) GetMessageName

func (*LogDetails) GetMessageName() string

func (*LogDetails) GetMessageType

func (*LogDetails) GetMessageType() api.MessageType

func (*LogDetails) Reset

func (m *LogDetails) Reset()

type LogDump

type LogDump struct {
	StartTimestamp Timestamp
}

LogDump represents VPP binary API message 'log_dump'.

func (*LogDump) GetCrcString

func (*LogDump) GetCrcString() string

func (*LogDump) GetMessageName

func (*LogDump) GetMessageName() string

func (*LogDump) GetMessageType

func (*LogDump) GetMessageType() api.MessageType

func (*LogDump) Reset

func (m *LogDump) Reset()

type LogLevel

type LogLevel uint32

LogLevel represents VPP binary API enum 'log_level'.

const (
	VPE_API_LOG_LEVEL_EMERG    LogLevel = 0
	VPE_API_LOG_LEVEL_ALERT    LogLevel = 1
	VPE_API_LOG_LEVEL_CRIT     LogLevel = 2
	VPE_API_LOG_LEVEL_ERR      LogLevel = 3
	VPE_API_LOG_LEVEL_WARNING  LogLevel = 4
	VPE_API_LOG_LEVEL_NOTICE   LogLevel = 5
	VPE_API_LOG_LEVEL_INFO     LogLevel = 6
	VPE_API_LOG_LEVEL_DEBUG    LogLevel = 7
	VPE_API_LOG_LEVEL_DISABLED LogLevel = 8
)

func (LogLevel) String

func (x LogLevel) String() string

type RPCService

type RPCService interface {
	DumpLog(ctx context.Context, in *LogDump) (RPCService_DumpLogClient, error)
	AddNodeNext(ctx context.Context, in *AddNodeNext) (*AddNodeNextReply, error)
	Cli(ctx context.Context, in *Cli) (*CliReply, error)
	CliInband(ctx context.Context, in *CliInband) (*CliInbandReply, error)
	ControlPing(ctx context.Context, in *ControlPing) (*ControlPingReply, error)
	GetF64EndianValue(ctx context.Context, in *GetF64EndianValue) (*GetF64EndianValueReply, error)
	GetF64IncrementByOne(ctx context.Context, in *GetF64IncrementByOne) (*GetF64IncrementByOneReply, error)
	GetNextIndex(ctx context.Context, in *GetNextIndex) (*GetNextIndexReply, error)
	GetNodeGraph(ctx context.Context, in *GetNodeGraph) (*GetNodeGraphReply, error)
	GetNodeIndex(ctx context.Context, in *GetNodeIndex) (*GetNodeIndexReply, error)
	ShowThreads(ctx context.Context, in *ShowThreads) (*ShowThreadsReply, error)
	ShowVersion(ctx context.Context, in *ShowVersion) (*ShowVersionReply, error)
	ShowVpeSystemTime(ctx context.Context, in *ShowVpeSystemTime) (*ShowVpeSystemTimeReply, error)
}

RPCService represents RPC service API for vpe module.

func NewServiceClient

func NewServiceClient(ch api.Channel) RPCService

type RPCService_DumpLogClient

type RPCService_DumpLogClient interface {
	Recv() (*LogDetails, error)
}

type ShowThreads

type ShowThreads struct{}

ShowThreads represents VPP binary API message 'show_threads'.

func (*ShowThreads) GetCrcString

func (*ShowThreads) GetCrcString() string

func (*ShowThreads) GetMessageName

func (*ShowThreads) GetMessageName() string

func (*ShowThreads) GetMessageType

func (*ShowThreads) GetMessageType() api.MessageType

func (*ShowThreads) Reset

func (m *ShowThreads) Reset()

type ShowThreadsReply

type ShowThreadsReply struct {
	Retval     int32
	Count      uint32 `struc:"sizeof=ThreadData"`
	ThreadData []ThreadData
}

ShowThreadsReply represents VPP binary API message 'show_threads_reply'.

func (*ShowThreadsReply) GetCrcString

func (*ShowThreadsReply) GetCrcString() string

func (*ShowThreadsReply) GetMessageName

func (*ShowThreadsReply) GetMessageName() string

func (*ShowThreadsReply) GetMessageType

func (*ShowThreadsReply) GetMessageType() api.MessageType

func (*ShowThreadsReply) Reset

func (m *ShowThreadsReply) Reset()

type ShowVersion

type ShowVersion struct{}

ShowVersion represents VPP binary API message 'show_version'.

func (*ShowVersion) GetCrcString

func (*ShowVersion) GetCrcString() string

func (*ShowVersion) GetMessageName

func (*ShowVersion) GetMessageName() string

func (*ShowVersion) GetMessageType

func (*ShowVersion) GetMessageType() api.MessageType

func (*ShowVersion) Reset

func (m *ShowVersion) Reset()

type ShowVersionReply

type ShowVersionReply struct {
	Retval         int32
	Program        string `struc:"[32]byte"`
	Version        string `struc:"[32]byte"`
	BuildDate      string `struc:"[32]byte"`
	BuildDirectory string `struc:"[256]byte"`
}

ShowVersionReply represents VPP binary API message 'show_version_reply'.

func (*ShowVersionReply) GetCrcString

func (*ShowVersionReply) GetCrcString() string

func (*ShowVersionReply) GetMessageName

func (*ShowVersionReply) GetMessageName() string

func (*ShowVersionReply) GetMessageType

func (*ShowVersionReply) GetMessageType() api.MessageType

func (*ShowVersionReply) Reset

func (m *ShowVersionReply) Reset()

type ShowVpeSystemTime

type ShowVpeSystemTime struct{}

ShowVpeSystemTime represents VPP binary API message 'show_vpe_system_time'.

func (*ShowVpeSystemTime) GetCrcString

func (*ShowVpeSystemTime) GetCrcString() string

func (*ShowVpeSystemTime) GetMessageName

func (*ShowVpeSystemTime) GetMessageName() string

func (*ShowVpeSystemTime) GetMessageType

func (*ShowVpeSystemTime) GetMessageType() api.MessageType

func (*ShowVpeSystemTime) Reset

func (m *ShowVpeSystemTime) Reset()

type ShowVpeSystemTimeReply

type ShowVpeSystemTimeReply struct {
	Retval        int32
	VpeSystemTime Timestamp
}

ShowVpeSystemTimeReply represents VPP binary API message 'show_vpe_system_time_reply'.

func (*ShowVpeSystemTimeReply) GetCrcString

func (*ShowVpeSystemTimeReply) GetCrcString() string

func (*ShowVpeSystemTimeReply) GetMessageName

func (*ShowVpeSystemTimeReply) GetMessageName() string

func (*ShowVpeSystemTimeReply) GetMessageType

func (*ShowVpeSystemTimeReply) GetMessageType() api.MessageType

func (*ShowVpeSystemTimeReply) Reset

func (m *ShowVpeSystemTimeReply) Reset()

type ThreadData

type ThreadData struct {
	ID        uint32
	Name      []byte `struc:"[64]byte"`
	Type      []byte `struc:"[64]byte"`
	PID       uint32
	CPUID     uint32
	Core      uint32
	CPUSocket uint32
}

ThreadData represents VPP binary API type 'thread_data'.

func (*ThreadData) GetTypeName

func (*ThreadData) GetTypeName() string

type Timedelta

type Timedelta float64

Timedelta represents VPP binary API alias 'timedelta'.

type Timestamp

type Timestamp float64

Timestamp represents VPP binary API alias 'timestamp'.

type Version

type Version struct {
	Major         uint32
	Minor         uint32
	Patch         uint32
	PreRelease    []byte `struc:"[17]byte"`
	BuildMetadata []byte `struc:"[17]byte"`
}

Version represents VPP binary API type 'version'.

func (*Version) GetTypeName

func (*Version) GetTypeName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL