Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnsupportedOS defines error for unsupported OS ErrUnsupportedOS = xerrors.New("unsupported os") )
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector detects OS package vulnerabilities.
func NewDetector ¶ added in v0.69.4
func NewDetector(target types.ScanTarget, opts ...Option) (*Detector, error)
NewDetector creates a new Detector for the given scan target
type Option ¶ added in v0.71.0
type Option func(*resolver)
Option configures a Detector. Options are provided for extensibility by users of Trivy as a library and are not used within Trivy itself.
func WithDriver ¶ added in v0.71.0
WithDriver registers a driver for the given OS family, overriding the default one.
func WithSupplier ¶ added in v0.73.0
WithSupplier registers an additional supplier. It takes priority over the built-in suppliers and the standard OS-specific drivers. When called multiple times, the most recently registered supplier is tried first.
Click to show internal directories.
Click to hide internal directories.