Documentation
¶
Overview ¶
Package backends wires the concrete vulnerability scanner backends to the backend-agnostic vulnerability.Scanner contract. It is the single place that imports the backend implementation packages (Trustify, Quay); consumers construct a Scanner via NewScanner without importing the backends directly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewScanner ¶
func NewScanner(cfg *config.VulnerabilityConfig) (vulnerability.Scanner, error)
NewScanner resolves the backend selected by cfg.Backend and constructs its Scanner. When cfg.Backend is empty it defaults per cfg.EffectiveBackend() (logging a deprecation warning when it resolves to Trustify), otherwise it errors.
Types ¶
This section is empty.