Documentation ¶
Index ¶
- func NewVpeHandler(c vpp.Client) vppcalls.VppCoreAPI
- type VpeHandler
- func (h *VpeHandler) GetModules(ctx context.Context) ([]vppcalls.APIModule, error)
- func (h *VpeHandler) GetPlugins(ctx context.Context) ([]vppcalls.PluginInfo, error)
- func (h *VpeHandler) GetSession(ctx context.Context) (*vppcalls.SessionInfo, error)
- func (h *VpeHandler) GetThreads(ctx context.Context) ([]vppcalls.ThreadInfo, error)
- func (h *VpeHandler) GetVersion(ctx context.Context) (*vppcalls.VersionInfo, error)
- func (h *VpeHandler) Ping(ctx context.Context) error
- func (h *VpeHandler) RunCli(ctx context.Context, cmd string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVpeHandler ¶
func NewVpeHandler(c vpp.Client) vppcalls.VppCoreAPI
Types ¶
type VpeHandler ¶
type VpeHandler struct {
// contains filtered or unexported fields
}
func (*VpeHandler) GetModules ¶
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) GetThreads ¶
func (h *VpeHandler) GetThreads(ctx context.Context) ([]vppcalls.ThreadInfo, error)
func (*VpeHandler) GetVersion ¶
func (h *VpeHandler) GetVersion(ctx context.Context) (*vppcalls.VersionInfo, error)
GetVersion retrieves version info from VPP.
Click to show internal directories.
Click to hide internal directories.