Documentation
¶
Index ¶
- type AnalyzerPlugin
- type LocalAgent
- func (a *LocalAgent) Analyze(ctx context.Context, data []byte, analyzers []analyzer.AnalyzerSpec) (*analyzer.AgentResult, error)
- func (a *LocalAgent) Capabilities() []string
- func (a *LocalAgent) HealthCheck(ctx context.Context) error
- func (a *LocalAgent) IsAvailable() bool
- func (a *LocalAgent) Name() string
- func (a *LocalAgent) RegisterPlugin(plugin AnalyzerPlugin) error
- type LocalAgentOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyzerPlugin ¶
type AnalyzerPlugin interface {
Name() string
Analyze(ctx context.Context, data map[string][]byte, config map[string]interface{}) (*analyzer.AnalyzerResult, error)
Supports(analyzerType string) bool
}
AnalyzerPlugin interface for custom analyzer plugins
type LocalAgent ¶
type LocalAgent struct {
// contains filtered or unexported fields
}
LocalAgent implements the Agent interface using built-in analyzers
func NewLocalAgent ¶
func NewLocalAgent(opts *LocalAgentOptions) *LocalAgent
NewLocalAgent creates a new local analysis agent
func (*LocalAgent) Analyze ¶
func (a *LocalAgent) Analyze(ctx context.Context, data []byte, analyzers []analyzer.AnalyzerSpec) (*analyzer.AgentResult, error)
Analyze performs analysis using built-in analyzers and plugins
func (*LocalAgent) Capabilities ¶
func (a *LocalAgent) Capabilities() []string
Capabilities returns the agent's capabilities
func (*LocalAgent) HealthCheck ¶
func (a *LocalAgent) HealthCheck(ctx context.Context) error
HealthCheck verifies the agent is functioning correctly
func (*LocalAgent) IsAvailable ¶
func (a *LocalAgent) IsAvailable() bool
IsAvailable checks if the agent is available for analysis
func (*LocalAgent) RegisterPlugin ¶
func (a *LocalAgent) RegisterPlugin(plugin AnalyzerPlugin) error
RegisterPlugin registers a custom analyzer plugin
type LocalAgentOptions ¶
LocalAgentOptions configures the local agent
Click to show internal directories.
Click to hide internal directories.