Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnrichedMatch ¶ added in v0.5.0
func EnrichedMatch(ctx context.Context, ir *claircore.IndexReport, ms []driver.Matcher, es []driver.Enricher, s Store) (*claircore.VulnerabilityReport, error)
EnrichedMatch receives an IndexReport and creates a VulnerabilityReport containing matched vulnerabilities and any relevant enrichments.
func Match ¶ added in v0.0.10
func Match(ctx context.Context, ir *claircore.IndexReport, matchers []driver.Matcher, store vulnstore.Vulnerability) (*claircore.VulnerabilityReport, error)
Match receives an IndexReport and creates a VulnerabilityReport containing matched vulnerabilities
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is a control structure used to find vulnerabilities affecting a set of packages.
func NewController ¶
func NewController(m driver.Matcher, store vulnstore.Vulnerability) *Controller
NewController is a constructor for a Controller
func (*Controller) Match ¶
func (mc *Controller) Match(ctx context.Context, records []*claircore.IndexRecord) (map[string][]*claircore.Vulnerability, error)
type Store ¶ added in v0.5.0
type Store interface { vulnstore.Vulnerability vulnstore.Enrichment }
Store is the interface that can retrieve Enrichments and Vulnerabilities.
Click to show internal directories.
Click to hide internal directories.