binapi

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpLogs

func DumpLogs(conn govppapi.Connection) ([]string, error)

func DumpLogsChan

func DumpLogsChan(ch govppapi.Channel) ([]string, error)

func DumpLogsSince

func DumpLogsSince(conn govppapi.Connection, t time.Time) ([]string, error)

func DumpLogsSinceChan

func DumpLogsSinceChan(ch govppapi.Channel, t time.Time) ([]string, error)

func GetPID

func GetPID(conn govppapi.Connection) (int, error)

func GetPIDChan

func GetPIDChan(ch govppapi.Channel) (int, error)

func GetSystemInfo

func GetSystemInfo(conn govppapi.Connection) (*api.RuntimeInfo, error)

func GetSystemInfoChan

func GetSystemInfoChan(ch govppapi.Channel) (*api.RuntimeInfo, error)

func GetSystemTime

func GetSystemTime(conn govppapi.Connection) (time.Duration, error)

func GetSystemTimeChan

func GetSystemTimeChan(ch govppapi.Channel) (time.Duration, error)

func GetVersion

func GetVersion(conn govppapi.Connection) (string, error)

func GetVersionChan

func GetVersionChan(ch govppapi.Channel) (string, error)

func GetVersionInfo

func GetVersionInfo(conn govppapi.Connection) (*api.BuildInfo, error)

func GetVersionInfoChan

func GetVersionInfoChan(ch govppapi.Channel) (*api.BuildInfo, error)

func ListInterfaces

func ListInterfaces(conn govppapi.Connection) ([]*api.Interface, error)

func ListInterfacesChan

func ListInterfacesChan(ch govppapi.Channel) ([]*api.Interface, error)

func RunCliChan

func RunCliChan(ch govppapi.Channel, cmd string) (string, error)

Types

type Client

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

type ShowVersionData

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

func ShowVersion

func ShowVersion(ch govppapi.Channel) (*ShowVersionData, error)

Jump to

Keyboard shortcuts

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