openvex

package
v0.73.5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Match

type Match struct {
	Statement openvex.Statement
}

Match captures the criteria that caused a vulnerability to match

type Processor

type Processor struct{}

func New

func New() *Processor

func (*Processor) AugmentMatches

func (ovm *Processor) AugmentMatches(
	docRaw interface{}, ignoreRules []match.IgnoreRule, pkgContext *pkg.Context, remainingMatches *match.Matches, ignoredMatches []match.IgnoredMatch,
) (*match.Matches, []match.IgnoredMatch, error)

AugmentMatches adds results to the match.Matches array when matching data about an affected VEX product is found on loaded VEX documents. Matches are moved from the ignore list or synthesized when no previous data is found.

func (*Processor) FilterMatches

func (ovm *Processor) FilterMatches(
	docRaw interface{}, ignoreRules []match.IgnoreRule, pkgContext *pkg.Context, matches *match.Matches, ignoredMatches []match.IgnoredMatch,
) (*match.Matches, []match.IgnoredMatch, error)

FilterMatches takes a set of scanning results and moves any results marked in the VEX data as fixed or not_affected to the ignored list.

func (*Processor) ReadVexDocuments

func (ovm *Processor) ReadVexDocuments(docs []string) (interface{}, error)

ReadVexDocuments reads and merges VEX documents

type SearchedBy

type SearchedBy struct {
	Vulnerability string
	Product       string
	Subcomponents []string
}

SearchedBy captures the prameters used to search through the VEX data

Jump to

Keyboard shortcuts

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