grype

package
v0.89.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 26 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindVulnerabilities

func FindVulnerabilities(store vulnerability.Provider, userImageStr string, scopeOpt source.Scope, registryOptions *image.RegistryOptions) (match.Matches, pkg.Context, []pkg.Package, error)

TODO: deprecated, will remove before v1.0.0

func FindVulnerabilitiesForPackage

func FindVulnerabilitiesForPackage(store vulnerability.Provider, d *linux.Release, matchers []match.Matcher, packages []pkg.Package) match.Matches

TODO: deprecated, will remove before v1.0.0

func LoadVulnerabilityDB added in v0.23.0

func LoadVulnerabilityDB(distCfg v6dist.Config, installCfg v6inst.Config, update bool) (vulnerability.Provider, *v6.Status, error)

func SetBus

func SetBus(b *partybus.Bus)

func SetLogger

func SetLogger(l logger.Logger)

Types

type VulnerabilityMatcher added in v0.54.0

type VulnerabilityMatcher struct {
	VulnerabilityProvider vulnerability.Provider
	ExclusionProvider     match.ExclusionProvider
	Matchers              []match.Matcher
	IgnoreRules           []match.IgnoreRule
	FailSeverity          *vulnerability.Severity
	NormalizeByCVE        bool
	VexProcessor          *vex.Processor
}

func (*VulnerabilityMatcher) FailAtOrAboveSeverity added in v0.54.0

func (m *VulnerabilityMatcher) FailAtOrAboveSeverity(severity *vulnerability.Severity) *VulnerabilityMatcher

func (*VulnerabilityMatcher) FindMatches added in v0.54.0

func (m *VulnerabilityMatcher) FindMatches(pkgs []pkg.Package, context pkg.Context) (remainingMatches *match.Matches, ignoredMatches []match.IgnoredMatch, err error)

func (*VulnerabilityMatcher) WithIgnoreRules added in v0.54.0

func (m *VulnerabilityMatcher) WithIgnoreRules(ignoreRules []match.IgnoreRule) *VulnerabilityMatcher

func (*VulnerabilityMatcher) WithMatchers added in v0.54.0

func (m *VulnerabilityMatcher) WithMatchers(matchers []match.Matcher) *VulnerabilityMatcher

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳