types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OutputConfig

type OutputConfig struct {
	JSONL         string         `yaml:"jsonl"`
	Markdown      string         `yaml:"markdown"`
	Pretty        bool           `yaml:"pretty"`
	Verbose       bool           `yaml:"verbose"`
	FailOn        []string       `yaml:"fail_on,omitempty"`        // legacy: severity names (threshold=1 each)
	FailThreshold map[string]int `yaml:"fail_threshold,omitempty"` // severity → min count to fail
	ExitCode      int            `yaml:"exit_code,omitempty"`      // custom exit code when gate breached (default 1)
	ExitCodes     map[string]int `yaml:"exit_codes,omitempty"`     // per-severity exit codes (highest severity wins)
}

OutputConfig configures scan output

type ScanConfig

type ScanConfig struct {
	RateLimit       int               `yaml:"rate_limit"`
	Threads         int               `yaml:"threads"`
	Timeout         int               `yaml:"timeout"`
	NoInteractsh    bool              `yaml:"no_interactsh"`
	Proxy           string            `yaml:"proxy"`
	FollowRedirects bool              `yaml:"follow_redirects"`
	MaxRedirects    int               `yaml:"max_redirects"`
	GlobalHeaders   map[string]string `yaml:"global_headers"`

	// DAST controls
	DASTEnabled    *bool            `yaml:"dast_enabled,omitempty"`    // nil = false (default off); use --dast flag or dast_enabled: true
	SkipCategories []string         `yaml:"skip_categories,omitempty"` // category/subtype names to skip
	DASTScope      models.DASTScope `yaml:"dast_scope,omitempty"`      // endpoint/method filtering for fuzzing

	// Detection customization
	Detection models.DetectionConfig `yaml:"detection,omitempty"` // customize success/failure detection DSL
}

ScanConfig configures the scan engine

Jump to

Keyboard shortcuts

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