vpp1908

package
v3.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVpeHandler

func NewVpeHandler(ch govppapi.Channel) 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) 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