Documentation
¶
Index ¶
- type HandlerConfig
- type ProcessHandler
- func (h *ProcessHandler) Close() error
- func (h *ProcessHandler) Command(cmd string, args ...string) exec.Cmd
- func (h *ProcessHandler) GetAPI() (govppapi.Channel, error)
- func (h *ProcessHandler) GetCLI() (probe.CliExecutor, error)
- func (h *ProcessHandler) GetStats() (govppapi.StatsProvider, error)
- func (h *ProcessHandler) ID() string
- func (h *ProcessHandler) Metadata() map[string]string
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerConfig ¶
HandlerConfig defines config parameters for ProcessHandler.
func DefaultConfig ¶
func DefaultConfig() HandlerConfig
DefaultConfig returns config set to default values.
type ProcessHandler ¶
type ProcessHandler struct { HandlerConfig // contains filtered or unexported fields }
ProcessHandler is a handler for local instance.
func NewHandler ¶
func NewHandler(pid int, config HandlerConfig) *ProcessHandler
NewHandler returns a new handler for a local instance specified by PID.
func (*ProcessHandler) Close ¶
func (h *ProcessHandler) Close() error
func (*ProcessHandler) Command ¶
func (h *ProcessHandler) Command(cmd string, args ...string) exec.Cmd
func (*ProcessHandler) GetCLI ¶
func (h *ProcessHandler) GetCLI() (probe.CliExecutor, error)
func (*ProcessHandler) GetStats ¶
func (h *ProcessHandler) GetStats() (govppapi.StatsProvider, error)
func (*ProcessHandler) ID ¶
func (h *ProcessHandler) ID() string
func (*ProcessHandler) Metadata ¶
func (h *ProcessHandler) Metadata() map[string]string
type Provider ¶
type Provider struct {
Config HandlerConfig
}
Provider manages locally running instances.
func NewProvider ¶
func NewProvider(config HandlerConfig) *Provider
Click to show internal directories.
Click to hide internal directories.