vppcalls

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 3 Imported by: 163

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Versions = map[string]HandlerVersion{}

Functions

This section is empty.

Types

type HandlerVersion

type HandlerVersion struct {
	Msgs []govppapi.Message
	New  func(govppapi.Channel) VpeVppAPI
}

type ModuleVersion

type ModuleVersion struct {
	Name  string
	Major uint32
	Minor uint32
	Patch uint32
}

ModuleVersion contains info about version of particular VPP module.

func (ModuleVersion) String

func (m ModuleVersion) String() string

type VersionInfo

type VersionInfo struct {
	Program        string
	Version        string
	BuildDate      string
	BuildDirectory string
}

VersionInfo contains values returned from ShowVersion

func (VersionInfo) Release

func (v VersionInfo) Release() string

Release returns version in shortened format YY.MM that describes release.

type VpeInfo

type VpeInfo struct {
	PID            uint32
	ClientIdx      uint32
	ModuleVersions []ModuleVersion
}

VpeInfo contains information about VPP connection and process.

type VpeVppAPI

type VpeVppAPI interface {
	Ping() error
	GetVersionInfo() (*VersionInfo, error)
	GetVpeInfo() (*VpeInfo, error)
	RunCli(cmd string) (string, error)
}

VpeVppAPI provides methods for retrieving info and running CLI commands.

func CompatibleVpeHandler

func CompatibleVpeHandler(ch govppapi.Channel) VpeVppAPI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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