matcher

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnrichedMatch added in v0.5.0

EnrichedMatch receives an IndexReport and creates a VulnerabilityReport containing matched vulnerabilities and any relevant enrichments.

func Match added in v0.0.10

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 datastore.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 {
	datastore.Vulnerability
	datastore.Enrichment
}

Store is the interface that can retrieve Enrichments and Vulnerabilities.

Jump to

Keyboard shortcuts

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