outputGenerator

package
v0.0.22-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailureOutput

func FailureOutput(sbomAnalysisInfo sbomTypes.AnalysisInfo, start time.Time) vulnerabilityFinder.Output

FailureOutput generates the output for a failed analysis. It takes the sbomAnalysisInfo as input, which contains information about the analysis. The start time of the analysis is also provided as input. It returns the generated output, which includes the analysis status, workspaces data, and analysis timing.

func SuccessOutput

func SuccessOutput(workspaceData map[string]vulnerabilityFinder.Workspace, sbomAnalysisInfo sbomTypes.AnalysisInfo, start time.Time) vulnerabilityFinder.Output

SuccessOutput generates the output for a successful vulnerability analysis. It takes in the workspaceData, sbomAnalysisInfo, and start time as parameters. It returns an instance of vulnerabilityFinder.Output containing the generated output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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