utils

package
v0.56.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 10 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 CountNewMessages

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

CountNewMessages a counter for enriched tool responses, returns how many messages were never seen before.

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, newMsgs int, template string, 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