putil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendResults

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

AppendResults appends the given issues to the existing output file.

func LoadEnrichedNonAggregatedToolResponse

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

LoadEnrichedNonAggregatedToolResponse loads enriched but not aggregated results from the enricher.

func LoadEnrichedToolResponse

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

LoadEnrichedToolResponse loads enriched results from the enricher.

func LoadTaggedToolResponse

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

LoadTaggedToolResponse loads raw results that have been tagged, it's used by the enrichers.

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,
	scanTags map[string]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