vpp2101

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVpeHandler

func NewVpeHandler(c vpp.Client) vppcalls.VppCoreAPI

Types

type VpeHandler

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

func (*VpeHandler) GetModules

func (h *VpeHandler) GetModules(ctx context.Context) ([]vppcalls.APIModule, error)

GetModules retrieves module info from VPP.

func (*VpeHandler) GetPlugins

func (h *VpeHandler) GetPlugins(ctx context.Context) ([]vppcalls.PluginInfo, error)

func (*VpeHandler) GetSession

func (h *VpeHandler) GetSession(ctx context.Context) (*vppcalls.SessionInfo, error)

GetSession retrieves session info from VPP.

func (*VpeHandler) GetThreads

func (h *VpeHandler) GetThreads(ctx context.Context) ([]vppcalls.ThreadInfo, error)

func (*VpeHandler) GetVersion

func (h *VpeHandler) GetVersion(ctx context.Context) (*vppcalls.VersionInfo, error)

GetVersion retrieves version info from VPP.

func (*VpeHandler) Ping

func (h *VpeHandler) Ping(ctx context.Context) error

Ping sends VPP control ping.

func (*VpeHandler) RunCli

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

RunCli sends CLI command to VPP and returns response.

Jump to

Keyboard shortcuts

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