Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllMatcherTypes = []MatcherType{ ApkMatcher, RubyGemMatcher, DpkgMatcher, RpmDBMatcher, JavaMatcher, PythonMatcher, JavascriptMatcher, MsrcMatcher, }
Functions ¶
This section is empty.
Types ¶
type Match ¶
type Match struct { Type Type // The kind of match made (an exact match, fuzzy match, indirect vs direct, etc). Confidence float64 // The certainty of the match as a ratio (currently unused, reserved for future use). Vulnerability vulnerability.Vulnerability // The vulnerability details of the match. Package pkg.Package // The package used to search for a match. SearchKey map[string]interface{} // The specific attributes that were used to search (other than package name and version) --this indicates "how" the match was made. SearchMatches map[string]interface{} // The specific attributes on the vulnerability object that were matched with --this indicates "what" was matched on / within. Matcher MatcherType // The matcher object that discovered the match. }
Match represents a finding in the vulnerability matching process, pairing a single package and a single vulnerability object.
type MatcherType ¶
type MatcherType int
const ( UnknownMatcherType MatcherType = iota ApkMatcher RubyGemMatcher DpkgMatcher RpmDBMatcher JavaMatcher PythonMatcher JavascriptMatcher MsrcMatcher )
func (MatcherType) String ¶
func (f MatcherType) String() string
type Matches ¶
type Matches struct {
// contains filtered or unexported fields
}
func NewMatches ¶
func NewMatches() Matches
func (*Matches) GetByPkgID ¶
GetByPkgID returns a slice of potential matches from an ID
Click to show internal directories.
Click to hide internal directories.