Documentation ¶
Index ¶
- type Handler
- func (h *Handler) Close()
- func (h *Handler) DumpInterfaceStats(ctx context.Context) (*govppapi.InterfaceStats, error)
- func (h *Handler) DumpInterfaces(ctx context.Context) (map[uint32]*api.InterfaceDetails, error)
- func (h *Handler) DumpNodeCounters(ctx context.Context) (*api.NodeCounterInfo, error)
- func (h *Handler) DumpPlugins(ctx context.Context) ([]api.PluginInfo, error)
- func (h *Handler) DumpRuntimeInfo(ctx context.Context) (*api.RuntimeInfo, error)
- func (h *Handler) DumpSession(ctx context.Context) (*api.SessionInfo, error)
- func (h *Handler) DumpThreads(ctx context.Context) ([]api.ThreadData, error)
- func (h *Handler) DumpVersion(ctx context.Context) (*api.VersionInfo, error)
- func (h *Handler) RunCli(ctx context.Context, cmd string) (string, error)
- type HandlerDef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler uses Ligato VPP-Agent interface and telemetry low-level handlers to obtain data from VPP
func NewVPPHandler ¶
NewVPPHandler creates a new instance of the VPP Handler
func (*Handler) DumpInterfaceStats ¶
func (*Handler) DumpInterfaces ¶
func (*Handler) DumpNodeCounters ¶
func (*Handler) DumpPlugins ¶
func (*Handler) DumpRuntimeInfo ¶
func (*Handler) DumpSession ¶
func (*Handler) DumpThreads ¶
func (*Handler) DumpVersion ¶
type HandlerDef ¶
type HandlerDef struct{}
HandlerDef is a VPP handler definition. It is used to validate compatibility with the version of the connected VPP
func (*HandlerDef) IsHandlerCompatible ¶
func (d *HandlerDef) IsHandlerCompatible(c *api.VppClient, isRemote bool) (api.HandlerAPI, string, error)
Click to show internal directories.
Click to hide internal directories.