Documentation
¶
Index ¶
- func FindVulnerabilities(store vulnerability.Provider, userImageStr string, scopeOpt source.Scope, ...) (match.Matches, pkg.Context, []pkg.Package, error)
- func FindVulnerabilitiesForPackage(store vulnerability.Provider, d *linux.Release, matchers []match.Matcher, ...) match.Matches
- func LoadVulnerabilityDB(distCfg v6dist.Config, installCfg v6inst.Config, update bool) (vulnerability.Provider, *v6.Status, error)
- func SetBus(b *partybus.Bus)
- func SetLogger(l logger.Logger)
- type VulnerabilityMatcher
- func (m *VulnerabilityMatcher) FailAtOrAboveSeverity(severity *vulnerability.Severity) *VulnerabilityMatcher
- func (m *VulnerabilityMatcher) FindMatches(pkgs []pkg.Package, context pkg.Context) (remainingMatches *match.Matches, ignoredMatches []match.IgnoredMatch, ...)
- func (m *VulnerabilityMatcher) WithIgnoreRules(ignoreRules []match.IgnoreRule) *VulnerabilityMatcher
- func (m *VulnerabilityMatcher) WithMatchers(matchers []match.Matcher) *VulnerabilityMatcher
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
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.