mirror of
https://github.com/anchore/grype
synced 2024-11-10 06:34:13 +00:00
add matcher interface
This commit is contained in:
parent
7371815a3e
commit
16c478536e
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue