utils

package
v0.18.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountEnrichedMessages

func CountEnrichedMessages(responses []*v1.EnrichedLaunchToolResponse) int

CountEnrichedMessages a counter for enriched tool responses

func CountRawMessages

func CountRawMessages(responses []*v1.LaunchToolResponse) int

CountRawMessages a counter for un-enriched tool responses

func GetEnrichedScanInfo

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

GetEnrichedScanInfo returns the enriched tool response scan info

func GetRawScanInfo

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

GetRawScanInfo returns the non-enriched tool response scan info

func ProcessEnrichedMessages

func ProcessEnrichedMessages(responses []*v1.EnrichedLaunchToolResponse) ([]string, error)

ProcessEnrichedMessages returns a list of stringified v1.EnrichedLaunchToolResponse

func ProcessRawMessages

func ProcessRawMessages(responses []*v1.LaunchToolResponse) ([]string, error)

ProcessRawMessages returns a list of stringified v1.LaunchToolResponse

func PushMessage

func PushMessage(b string, webhook string)

PushMessage writes to the webhook

func PushMetrics

func PushMetrics(scanUUID string, issuesNo int, scanStartTime time.Time, webhook string)

PushMetrics will write a short message to the webhook containing the info below

Types

This section is empty.

Jump to

Keyboard shortcuts

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