Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFromMemory ¶
LoadFromMemory reconstructs the scan pretty output from .vulnetix/sbom.cdx.json. When fresh* flags are true, selective API calls are made to refresh that data.
Types ¶
type GateBreach ¶
type GateBreach struct {
Gate string // "malware" | "exploits" | "severity" | "eol"
Count int
Message string // pre-formatted, ready to print
}
GateBreach captures one quality gate's failure details.
type MultiPolicyBreachError ¶
type MultiPolicyBreachError struct {
Breaches []GateBreach
}
MultiPolicyBreachError is returned when one or more quality gates are breached.
func (*MultiPolicyBreachError) Error ¶
func (e *MultiPolicyBreachError) Error() string
type PolicyBreachError ¶
type PolicyBreachError interface {
error
// contains filtered or unexported methods
}
PolicyBreachError is implemented by all quality-gate breach errors. Execute() uses this interface to suppress redundant error printing — the command itself has already printed the breach details.
type SeverityBreachError ¶
type SeverityBreachError struct {
// contains filtered or unexported fields
}
SeverityBreachError is returned when --severity threshold is breached. It signals main() to exit with code 1 without printing a redundant error message.
func (*SeverityBreachError) Error ¶
func (e *SeverityBreachError) Error() string
Source Files
¶
- auth.go
- completion.go
- env.go
- from_memory.go
- gh_dependabot.go
- gha.go
- license.go
- root.go
- scan.go
- specialized_scans.go
- update.go
- upload.go
- vdb.go
- vdb_ai.go
- vdb_attack_techniques.go
- vdb_ecosystem.go
- vdb_exploits_poc.go
- vdb_iocs.go
- vdb_kev.go
- vdb_msrc.go
- vdb_nuclei.go
- vdb_raw.go
- vdb_reachability.go
- vdb_sightings.go
- vdb_snort_rules.go
- vdb_trends.go
- vdb_triage.go
- vdb_v2.go
- vdb_vex.go
- vdb_yara_rules.go
- version.go
Click to show internal directories.
Click to hide internal directories.