osv

package
v0.12.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	URI          string = "osv.dev"
	VERSION      string = "0.0.14"
	INVOC_URI    string = "guac"
	PRODUCER_ID  string = "guacsec/guac"
	OSVCollector string = "osv_certifier"
)

Variables

View Source
var ErrOSVComponenetTypeMismatch error = errors.New("rootComponent type is not []*root_package.PackageNode")

Functions

func EvaluateOSVResponse added in v0.8.2

func EvaluateOSVResponse(ctx context.Context, client *http.Client, purls []string, docChannel chan<- *processor.Document, withVulnerabilityMetadata bool) ([]*processor.Document, error)

EvaluateOSVResponse takes a list of purls and batch queries OSV for vulnerability information

func NewOSVCertificationParser

func NewOSVCertificationParser(opts ...CertifierOpts) certifier.Certifier

NewOSVCertificationParser initializes the OSVCertifier

Types

type CertifierOpts added in v0.12.0

type CertifierOpts func(*osvCertifier)

func WithVulnerabilityMetadata added in v0.12.0

func WithVulnerabilityMetadata() CertifierOpts

Jump to

Keyboard shortcuts

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