vex

package
v0.77.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	Options ProcessorOptions
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(opts ProcessorOptions) *Processor

NewProcessor returns a new VEX processor. For now, it defaults to the only vex implementation: OpenVEX

func (*Processor) ApplyVEX

func (vm *Processor) ApplyVEX(pkgContext *pkg.Context, remainingMatches *match.Matches, ignoredMatches []match.IgnoredMatch) (*match.Matches, []match.IgnoredMatch, error)

ApplyVEX receives the results from a scan run and applies any VEX information in the files specified in the grype invocation. Any filtered results will be moved to the ignored matches slice.

type ProcessorOptions

type ProcessorOptions struct {
	Documents   []string
	IgnoreRules []match.IgnoreRule
}

ProcessorOptions captures the optiones of the VEX processor.

type Status

type Status string
const (
	StatusNotAffected        Status = Status(gopenvex.StatusNotAffected)
	StatusAffected           Status = Status(gopenvex.StatusAffected)
	StatusFixed              Status = Status(gopenvex.StatusFixed)
	StatusUnderInvestigation Status = Status(gopenvex.StatusUnderInvestigation)
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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