Documentation ¶
Index ¶
- func GetEnrichedScanInfo(response *v1.EnrichedLaunchToolResponse) *v1.ScanInfo
- func GetRawScanInfo(response *v1.LaunchToolResponse) *v1.ScanInfo
- func ProcessEnrichedMessages(responses []*v1.EnrichedLaunchToolResponse, allowDuplicate, allowFP bool, ...) ([]document.Document, int)
- func ProcessMessages(allowDuplicates, allowFP bool, sevThreshold int) ([]document.Document, int, error)
- func ProcessRawMessages(responses []*v1.LaunchToolResponse, sevThreshold int) ([]document.Document, int)
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 smithy 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.