local

package
v0.0.0-...-fb2e7cc Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const VPPVersion = "21.01-rc2~2"

GetVersion of the local VPP implementation

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler makes use of the local implementation to obtain VPP data.

func NewLocalHandler

func NewLocalHandler(c *api.VppClient, ch govppapi.Channel, isRemote bool) *Handler

NewLocalHandler returns new instance of the local handler

func (*Handler) Close

func (h *Handler) Close()

func (*Handler) DumpInterfaceStats

func (h *Handler) DumpInterfaceStats(ctx context.Context) (*govppapi.InterfaceStats, error)

func (*Handler) DumpInterfaces

func (h *Handler) DumpInterfaces(ctx context.Context) (map[uint32]*api.InterfaceDetails, error)

func (*Handler) DumpNodeCounters

func (h *Handler) DumpNodeCounters(ctx context.Context) (*api.NodeCounterInfo, error)

func (*Handler) DumpPlugins

func (h *Handler) DumpPlugins(ctx context.Context) ([]api.PluginInfo, error)

func (*Handler) DumpRuntimeInfo

func (h *Handler) DumpRuntimeInfo(ctx context.Context) (*api.RuntimeInfo, error)

func (*Handler) DumpSession

func (h *Handler) DumpSession(ctx context.Context) (*api.SessionInfo, error)

func (*Handler) DumpThreads

func (h *Handler) DumpThreads(ctx context.Context) ([]api.ThreadData, error)

func (*Handler) DumpVersion

func (h *Handler) DumpVersion(ctx context.Context) (*api.VersionInfo, error)

func (*Handler) RunCli

func (h *Handler) RunCli(ctx context.Context, cmd string) (string, error)

type HandlerDef

type HandlerDef struct{}

HandlerDef is a local handler definition. It is used to validate compatibility with the version of the connected VPP

func (*HandlerDef) IsHandlerCompatible

func (d *HandlerDef) IsHandlerCompatible(c *api.VppClient, isRemote bool) (api.HandlerAPI, string, error)

Directories

Path Synopsis
binapi
dhcp
Package dhcp contains generated bindings for API file dhcp.api.
Package dhcp contains generated bindings for API file dhcp.api.
ethernet_types
Package ethernet_types contains generated bindings for API file ethernet_types.api.
Package ethernet_types contains generated bindings for API file ethernet_types.api.
fib_types
Package fib_types contains generated bindings for API file fib_types.api.
Package fib_types contains generated bindings for API file fib_types.api.
interface
Package interfaces contains generated bindings for API file interface.api.
Package interfaces contains generated bindings for API file interface.api.
interface_types
Package interface_types contains generated bindings for API file interface_types.api.
Package interface_types contains generated bindings for API file interface_types.api.
ip
Package ip contains generated bindings for API file ip.api.
Package ip contains generated bindings for API file ip.api.
ip_types
Package ip_types contains generated bindings for API file ip_types.api.
Package ip_types contains generated bindings for API file ip_types.api.
mfib_types
Package mfib_types contains generated bindings for API file mfib_types.api.
Package mfib_types contains generated bindings for API file mfib_types.api.
vpe
Package vpe contains generated bindings for API file vpe.api.
Package vpe contains generated bindings for API file vpe.api.
vpe_types
Package vpe_types contains generated bindings for API file vpe_types.api.
Package vpe_types contains generated bindings for API file vpe_types.api.

Jump to

Keyboard shortcuts

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