config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultScannerEnabled = false           // Default to not run any scanners
	DefaultTimeout        = 5 * time.Minute // Default timeout per record scan
	DefaultCLIPath        = "mcp-scanner"   // Default path to mcp-scanner binary
	DefaultFailOnError    = false           // Default to not fail on error
	DefaultFailOnWarning  = false           // Default to not fail on warning
)

Default values for scanner configuration.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled       bool          // If true, run all registered scanners
	Timeout       time.Duration // Timeout per record scan
	CLIPath       string        // Path to mcp-scanner binary; empty = "mcp-scanner" from PATH
	FailOnError   bool          // If true, do not import records that have error-severity findings
	FailOnWarning bool          // If true, do not import records that have warning-severity findings
}

Config contains configuration for the scanner pipeline stage.

func (*Config) Validate

func (c *Config) Validate() error

Validate checks if the scanner configuration is valid.

Jump to

Keyboard shortcuts

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