Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OmniMatcher ¶
OmniMatcher is a aggregation of Matcher implementations.
Its exported methods will call each implementation's method of the same name and return the first true value.
Currently Vulnerable is the only method implemented.
func New ¶
func New(m []driver.Matcher) OmniMatcher
NewOmniMatcher is a constructor for an OmniMatcher.
If a nil array of Matchers is provided the default containing all in-tree matchers is used.
func (OmniMatcher) Vulnerable ¶
func (om OmniMatcher) Vulnerable(ctx context.Context, record *claircore.IndexRecord, vuln *claircore.Vulnerability) (bool, error)
Vulnerable will call each Matcher's Vulnerable method until one returns true.
Click to show internal directories.
Click to hide internal directories.