local

package
v0.123.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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) Name

func (a *LocalAgent) Name() string

Name returns the agent name

func (*LocalAgent) RegisterPlugin

func (a *LocalAgent) RegisterPlugin(plugin AnalyzerPlugin) error

RegisterPlugin registers a custom analyzer plugin

type LocalAgentOptions

type LocalAgentOptions struct {
	EnablePlugins  bool
	PluginDir      string
	MaxConcurrency int
}

LocalAgentOptions configures the local agent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL