Documentation
¶
Overview ¶
Package grype implements a Matcher that uses the Grype vulnerability library (builtin) or the grype CLI binary (external), selected via build tags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
type Matcher struct {
// DBDir is the directory that contains the Grype vulnerability database.
// Defaults to the OS cache directory / grype / db.
DBDir string
// Logger receives diagnostic messages. Maybe nil (no-op).
Logger *zap.Logger
// DistConfigOverride overrides the default distribution config (e.g., LatestURL).
DistConfigOverride any
}
Matcher uses the Grype library or CLI to match packages against a vulnerability database.
func (Matcher) Applicable ¶
func (Matcher) Descriptor ¶
func (a Matcher) Descriptor() sdk.MatcherDescriptor
Descriptor returns the registration metadata for the Grype matcher.
func (Matcher) Match ¶
func (a Matcher) Match(_ context.Context, req sdk.MatchRequest) (sdk.MatchResult, error)
Match attaches Grype vulnerability matches to packages in the graph.
Click to show internal directories.
Click to hide internal directories.