output

package
v0.0.0-...-e21f29a Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintJSONResults

func PrintJSONResults(query osv.BatchedQuery, resp *osv.HydratedBatchedResponse, outputWriter io.Writer) error

PrintJSONResults writes results to the provided writer in JSON format

func PrintTableResults

func PrintTableResults(query osv.BatchedQuery, resp *osv.HydratedBatchedResponse, outputWriter io.Writer)

PrintTableResults prints the osv scan results into a human friendly table.

Types

type Output

type Output struct {
	Results []Result `json:"results"`
}

type Package

type Package struct {
	Name            string              `json:"name"`
	Version         string              `json:"version"`
	Ecosystem       string              `json:"ecosystem"`
	Vulnerabilities []osv.Vulnerability `json:"vulnerabilities"`
}

func PURLToPackage

func PURLToPackage(purl string) (Package, error)

type Result

type Result struct {
	PackageSource osv.Source `json:"packageSource"`
	Packages      []Package  `json:"packages"`
}

Jump to

Keyboard shortcuts

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