add matcher interface

This commit is contained in:
Alex Goodman 2020-06-01 07:17:23 -04:00
parent 7371815a3e
commit 16c478536e
No known key found for this signature in database
GPG key ID: 86E2870463D5E890

View file

@ -1,11 +1,13 @@
package matcher
import (
"github.com/anchore/imgbom/imgbom/os"
"github.com/anchore/imgbom/imgbom/pkg"
"github.com/anchore/vulnscan/vulnscan/match"
"github.com/anchore/vulnscan/vulnscan/vulnerability"
)
type Matcher interface {
Type() pkg.Type
Match(match.Store, pkg.Package) []match.Match
Types() []pkg.Type
Match(vulnerability.Provider, os.OS, *pkg.Package) ([]match.Match, error)
}