Documentation
¶
Index ¶
- func Run(version string)
- func RunInspect(pluginName, target string) error
- type Agent
- func (a *Agent) DelPlugin(name string)
- func (a *Agent) GetPluginConfig(name string) *PluginConfig
- func (a *Agent) HandleChangedPlugin(names []string)
- func (a *Agent) HandleNewPlugin(names []string)
- func (a *Agent) LoadPlugin(name string, pc *PluginConfig)
- func (a *Agent) Reload()
- func (a *Agent) RunningPlugins() []string
- func (a *Agent) Start()
- func (a *Agent) Stop()
- type PluginConfig
- type PluginRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶ added in v0.22.0
func Run(version string)
Run starts the agent and blocks until a termination signal is received. This is the public entry point for external binaries (e.g. kubepaw) that embed catpaw's full agent lifecycle.
func RunInspect ¶ added in v0.10.0
RunInspect executes a proactive health inspection from the CLI. For remote plugins (redis, mysql), it loads config to find connection credentials. For local-only plugins (cpu, mem, disk), target can be empty.
Types ¶
type Agent ¶
func (*Agent) GetPluginConfig ¶
func (a *Agent) GetPluginConfig(name string) *PluginConfig
func (*Agent) HandleChangedPlugin ¶
func (*Agent) HandleNewPlugin ¶
func (*Agent) LoadPlugin ¶
func (a *Agent) LoadPlugin(name string, pc *PluginConfig)
func (*Agent) RunningPlugins ¶
type PluginConfig ¶
type PluginRunner ¶
Click to show internal directories.
Click to hide internal directories.