utils

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnrichedScanInfo

func GetEnrichedScanInfo(response *v1.EnrichedLaunchToolResponse) *v1.ScanInfo

GetEnrichedScanInfo returns the enriched response's scan info.

func GetRawScanInfo

func GetRawScanInfo(response *v1.LaunchToolResponse) *v1.ScanInfo

GetRawScanInfo returns the non-enriched response's scan info.

func ProcessEnrichedMessages

func ProcessEnrichedMessages(responses []*v1.EnrichedLaunchToolResponse, allowDuplicate, allowFP bool, sevThreshold int) ([]document.Document, int)

ProcessEnrichedMessages returns a list of HashMaps of the v1.EnrichedLaunchToolResponses.

func ProcessMessages

func ProcessMessages(allowDuplicates, allowFP bool, sevThreshold int) ([]document.Document, int, error)

ProcessMessages processess all the v1.LaunchToolResponses (or v1.EnrichedToolResponses if consumers.Raw is false) and returns: :return messages - a list of HashMaps containing all the parsed dracon issues that are equal & above the specified severity threshold :return discardedMsgs - the number of messages that have been discarded by the allowDuplicates or allowFP policies :return error - if there is any error throughout the processing.

func ProcessRawMessages

func ProcessRawMessages(responses []*v1.LaunchToolResponse, sevThreshold int) ([]document.Document, int)

ProcessRawMessages returns a list of HashMaps of the v1.LaunchToolResponses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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