omnimatcher

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OmniMatcher

type OmniMatcher []driver.Matcher

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL