grype

package
v0.77.4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 26 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindVulnerabilities

func FindVulnerabilities(store store.Store, 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 store.Store, d *linux.Release, matchers []matcher.Matcher, packages []pkg.Package) match.Matches

TODO: deprecated, will remove before v1.0.0

func HasSeverityAtOrAbove added in v0.54.0

func HasSeverityAtOrAbove(store vulnerability.MetadataProvider, severity vulnerability.Severity, matches match.Matches) bool

func LoadVulnerabilityDB added in v0.23.0

func LoadVulnerabilityDB(cfg db.Config, update bool) (*store.Store, *db.Status, *db.Closer, 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 {
	Store          store.Store
	Matchers       []matcher.Matcher
	IgnoreRules    []match.IgnoreRule
	FailSeverity   *vulnerability.Severity
	NormalizeByCVE bool
	VexProcessor   *vex.Processor
}

func DefaultVulnerabilityMatcher added in v0.54.0

func DefaultVulnerabilityMatcher(store store.Store) *VulnerabilityMatcher

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 []matcher.Matcher) *VulnerabilityMatcher

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL