output

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCycloneDXBOM

func CreateCycloneDXBOM(tool sbom.Tool, vulnResult *models.VulnerabilityResults) (*cyclonedx.BOM, error)

This method creates a CycloneDX SBOM and returns it. Error being returned here are from components being filtered during PURL grouping

func Form

func Form(count int, singular, plural string) string

Form returns the singular or plural form that should be used based on the given count

func PrintCycloneDXResults

func PrintCycloneDXResults(tool sbom.Tool, vulnResult *models.VulnerabilityResults, outputWriter io.Writer) error

PrintCycloneDXResults writes results to the provided writer in CycloneDX format

func PrintCycloneDXResultsWithPretty added in v1.2.2

func PrintCycloneDXResultsWithPretty(tool sbom.Tool, vulnResult *models.VulnerabilityResults, outputWriter io.Writer, pretty bool) error

PrintCycloneDXResultsWithPretty writes results to the provided writer in CycloneDX format with optional pretty printing

func PrintJSONResults

func PrintJSONResults(vulnResult *models.VulnerabilityResults, outputWriter io.Writer) error

PrintJSONResults writes results to the provided writer in JSON format

func PrintJSONResultsWithPretty added in v1.2.2

func PrintJSONResultsWithPretty(vulnResult *models.VulnerabilityResults, outputWriter io.Writer, pretty bool) error

PrintJSONResultsWithPretty writes results to the provided writer in JSON format with optional pretty printing

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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