Documentation
¶
Index ¶
- Constants
- func BoolPtr(val bool) *bool
- func Contains[E comparable](s []E, v E) bool
- func GetVulnerabilityTotalsPerSeverity(vulnerabilities *[]models.Vulnerability) *models.VulnerabilityScanSummary
- func Index[E comparable](s []E, v E) int
- func PointerTo[T any](value T) *T
- func RunCommand(cmd *exec.Cmd) ([]byte, error)
- func StringKeyMapToArray[T any](m map[string]T) []T
- func StringPtr(val string) *string
- type CmdRunError
Constants ¶
View Source
const ( DefaultResourceReadyWaitTimeoutMin = 3 DefaultResourceReadyCheckIntervalSec = 3 )
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[E comparable](s []E, v E) bool
Contains reports whether v is present in s.
func GetVulnerabilityTotalsPerSeverity ¶
func GetVulnerabilityTotalsPerSeverity(vulnerabilities *[]models.Vulnerability) *models.VulnerabilityScanSummary
func Index ¶
func Index[E comparable](s []E, v E) int
Index returns the index of the first occurrence of v in s, or -1 if not present.
func StringKeyMapToArray ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.