Documentation ¶
Overview ¶
Package vpp handles the VPP instance.
Index ¶
- Variables
- func DumpLogsCLI(cli probe.CliExecutor) ([]string, error)
- func DumpStats(stats govppapi.StatsProvider) (*api.VppStats, error)
- func GetClockCLI(cli probe.CliExecutor) (time.Time, error)
- func GetPidCLI(cli probe.CliExecutor) (int, error)
- func GetUptimeCLI(cli probe.CliExecutor) (time.Duration, error)
- func ListStats(stats govppapi.StatsProvider) ([]string, error)
- func ShowPluginsCLI(cli probe.CliExecutor) ([]api.Plugin, error)
- type APIStatus
- type ClockData
- type Instance
- func (v *Instance) Agent() *agent.Instance
- func (v *Instance) DumpLogs() ([]string, error)
- func (v *Instance) DumpStats() (*api.VppStats, error)
- func (v *Instance) GetBuildInfo() (*api.BuildInfo, error)
- func (v *Instance) GetLogs(since time.Time) ([]string, error)
- func (v *Instance) GetSystemInfo() (*api.RuntimeInfo, error)
- func (v *Instance) GetUptime() (time.Duration, error)
- func (v *Instance) GetVersion() (string, error)
- func (v *Instance) Handler() probe.Handler
- func (v *Instance) ID() string
- func (v *Instance) Init() (err error)
- func (v *Instance) ListInterfaces() ([]*api.Interface, error)
- func (v *Instance) ListStats() ([]string, error)
- func (v *Instance) MarshalJSON() ([]byte, error)
- func (v *Instance) RunCli(cmd string) (string, error)
- func (v *Instance) Status() *APIStatus
- func (v Instance) String() string
- func (v *Instance) UnmarshalJSON(data []byte) error
- func (v *Instance) VppInfo() api.VppInfo
- func (v *Instance) VppInterfaces() []*api.Interface
- func (v *Instance) VppStats() *api.VppStats
- type State
- type Status
- type VersionVerboseData
Constants ¶
This section is empty.
Variables ¶
View Source
var ()
Functions ¶
func DumpLogsCLI ¶
func DumpLogsCLI(cli probe.CliExecutor) ([]string, error)
func DumpStats ¶ added in v0.2.0
func DumpStats(stats govppapi.StatsProvider) (*api.VppStats, error)
func GetClockCLI ¶ added in v0.2.0
func GetClockCLI(cli probe.CliExecutor) (time.Time, error)
func GetUptimeCLI ¶
func GetUptimeCLI(cli probe.CliExecutor) (time.Duration, error)
func ShowPluginsCLI ¶
func ShowPluginsCLI(cli probe.CliExecutor) ([]api.Plugin, error)
Types ¶
type ClockData ¶ added in v0.2.0
func ShowClockCLI ¶ added in v0.2.0
func ShowClockCLI(cli probe.CliExecutor) (*ClockData, error)
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance handles access to a running VPP instance.
func NewInstance ¶
NewInstance tries to initialize probe and returns a new Instance on success.
func (*Instance) GetSystemInfo ¶
func (v *Instance) GetSystemInfo() (*api.RuntimeInfo, error)
func (*Instance) GetVersion ¶
func (*Instance) MarshalJSON ¶
func (*Instance) UnmarshalJSON ¶
func (*Instance) VppInterfaces ¶ added in v0.2.0
type Status ¶
func (Status) MarshalJSON ¶
type VersionVerboseData ¶
type VersionVerboseData struct { Version string CompiledBy string CompileHost string CompileDate string CompileLocation string Compiler string CurrentPID string }
func ShowVersionVerboseCLI ¶
func ShowVersionVerboseCLI(cli probe.CliExecutor) (*VersionVerboseData, error)
Click to show internal directories.
Click to hide internal directories.