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 ByElements ¶ added in v0.13.0
type ByElements []Match
func (ByElements) Len ¶ added in v0.13.0
func (m ByElements) Len() int
Len is the number of elements in the collection.
func (ByElements) Less ¶ added in v0.13.0
func (m ByElements) Less(i, j int) bool
Less reports whether the element with index i should sort before the element with index j.
func (ByElements) Swap ¶ added in v0.13.0
func (m ByElements) Swap(i, j int)
Swap swaps the elements with indexes i and j.
type Details ¶ added in v0.13.0
type Details struct { SearchedBy interface{} // The specific attributes that were used to search (other than package name and version) --this indicates "how" the match was made. Found 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. Confidence float64 // The certainty of the match as a ratio (currently unused, reserved for future use). }
type Fingerprint ¶ added in v0.13.0
type Fingerprint struct {
// contains filtered or unexported fields
}
type Match ¶
type Match struct { Type Type // The kind of match made (an exact match, fuzzy match, indirect vs direct, etc). Vulnerability vulnerability.Vulnerability // The vulnerability details of the match. Package pkg.Package // The package used to search for a match. MatchDetails []Details // all ways in which how this particular match was made. }
Match represents a finding in the vulnerability matching process, pairing a single package and a single vulnerability object.
func (Match) Fingerprint ¶ added in v0.13.0
func (m Match) Fingerprint() Fingerprint
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.