Versions in this module Expand all Collapse all v0 v0.61.1 Apr 27, 2023 Changes in this version + var AllMatcherTypes = []MatcherType + var ErrCannotMerge = fmt.Errorf("unable to merge vulnerability matches") + func ApplyIgnoreRules(matches Matches, rules []IgnoreRule) (Matches, []IgnoredMatch) + func ConvertToIndirectMatches(matches []Match, p pkg.Package) + type ByElements []Match + func (m ByElements) Len() int + func (m ByElements) Less(i, j int) bool + func (m ByElements) Swap(i, j int) + type Detail struct + Confidence float64 + Found interface{} + Matcher MatcherType + SearchedBy interface{} + Type Type + func (m Detail) ID() string + func (m Detail) String() string + type Details []Detail + func (m Details) Matchers() (tys []MatcherType) + func (m Details) Types() (tys []Type) + type ExclusionProvider interface + GetRules func(vulnerabilityID string) ([]IgnoreRule, error) + type Fingerprint struct + func (m Fingerprint) ID() string + func (m Fingerprint) String() string + type IgnoreRule struct + FixState string + Namespace string + Package IgnoreRulePackage + Vulnerability string + type IgnoreRulePackage struct + Language string + Location string + Name string + Type string + Version string + type IgnoredMatch struct + AppliedIgnoreRules []IgnoreRule + type Match struct + Details Details + Package pkg.Package + Vulnerability vulnerability.Vulnerability + func (m *Match) Merge(other Match) error + func (m Match) Fingerprint() Fingerprint + func (m Match) String() string + func (m Match) Summary() string + type MatcherType string + const ApkMatcher + const DotnetMatcher + const DpkgMatcher + const GoModuleMatcher + const JavaMatcher + const JavascriptMatcher + const MsrcMatcher + const PortageMatcher + const PythonMatcher + const RpmMatcher + const RubyGemMatcher + const StockMatcher + const UnknownMatcherType + type Matches struct + func ApplyExplicitIgnoreRules(provider ExclusionProvider, matches Matches) Matches + func NewMatches(matches ...Match) Matches + func (r *Matches) Add(matches ...Match) + func (r *Matches) AllByPkgID() map[pkg.ID][]Match + func (r *Matches) Count() int + func (r *Matches) Enumerate() <-chan Match + func (r *Matches) GetByPkgID(id pkg.ID) (matches []Match) + func (r *Matches) Merge(other Matches) + func (r *Matches) Sorted() []Match + type Type string + const CPEMatch + const ExactDirectMatch + const ExactIndirectMatch