utils

package
v2.0.0-...-c89eb23 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MaximumAnalysisSizeBytesThreshold = 500000000 // 500MB
View Source
const MaximumFlawCountThreshold = 2500
View Source
const MaximumModuleCountThreshold = 500
View Source
const MaximumModuleSelectedCountThreshold = 100
View Source
const MaximumTotalModuleSizeBytesThreshold = 1000000000 // 1GB
View Source
const MaximumUploadedFileCountThreshold = 10000
View Source
const NotUsingAutomationIfScanOlderThanDays = 30

Variables

This section is empty.

Functions

func ColorPrintf

func ColorPrintf(format string)

func ErrorAndExit

func ErrorAndExit(message string, err error)

func ErrorAndExitWithUsage

func ErrorAndExitWithUsage(message string)

func FormatBytes

func FormatBytes(size uint64) string

func FormatDuration

func FormatDuration(duration time.Duration) string

func FormatHumanDurationDays

func FormatHumanDurationDays(duration time.Duration) string

func GetFormattedOnlyInSideString

func GetFormattedOnlyInSideString(side string) string

func GetFormattedSideString

func GetFormattedSideString(side string) string

func GetFormattedSideStringWithMessage

func GetFormattedSideStringWithMessage(side, message string) string

func IsFileNameInFancyList

func IsFileNameInFancyList(fileName string, fancyList []string) bool

IsFileNameInFancyList tests a wildcard string Use a single * for case-insensitive wildcard search, e.g. "*.exe" Use ! for case-sensitive wildcard search, e.g. "!*.EXE" Use ^ for contains e.g. "^test" Otherwise will check for equality (case-insensitive)

func IsInIntArray

func IsInIntArray(x int, y []int) bool

func IsStringInStringArray

func IsStringInStringArray(input string, list []string) bool

func IsValidRegion

func IsValidRegion(region string) bool

func ParseApplicationIdFromPlatformUrl

func ParseApplicationIdFromPlatformUrl(url string) (int, error)

func ParseBaseUrlFromRegion

func ParseBaseUrlFromRegion(region string) string

func ParseBuildIdFromScanInformation

func ParseBuildIdFromScanInformation(urlOrBuildId string) (int, error)

func ParseRegionFromUrl

func ParseRegionFromUrl(url string) string

func ParseVeracodeDate

func ParseVeracodeDate(date string) time.Time

func PrintTitle

func PrintTitle(title string)

func StringToFloat

func StringToFloat(input string) (float64, error)

func Top5StringList

func Top5StringList(items []string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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