putil

package
v0.18.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendResults added in v0.10.0

func AppendResults(issues []*v1.Issue, outFile string) error

AppendResults appends the given issues to the existing output file

func LoadEnrichedToolResponse

func LoadEnrichedToolResponse(inPath string) ([]*v1.EnrichedLaunchToolResponse, error)

LoadEnrichedToolResponse loads enriched results from the enricher

func LoadToolResponse

func LoadToolResponse(inPath string) ([]*v1.LaunchToolResponse, error)

LoadToolResponse loads raw results

func WriteEnrichedResults

func WriteEnrichedResults(
	originalResults *v1.LaunchToolResponse,
	enrichedIssues []*v1.EnrichedIssue,
	outFile string,
) error

WriteEnrichedResults writes the given enriched results to the given output file

func WriteResults

func WriteResults(
	toolName string,
	issues []*v1.Issue,
	outFile string,
	scanUUID string,
	scanStartTime string,
) error

WriteResults writes the given issues to the the given output file as the given tool name

Types

This section is empty.

Jump to

Keyboard shortcuts

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