Versions in this module Expand all Collapse all v0 v0.7.2 Jul 9, 2024 v0.7.1 Jun 14, 2024 Changes in this version + func Contains[E comparable](s []E, v E) bool + func CreateSource(sourceType SourceType, localImage bool) string + func GenerateHash(inputType SourceType, source string) (string, error) + func GetVulnerabilityTotalsPerSeverity(vulnerabilities *[]apitypes.Vulnerability) *apitypes.VulnerabilityScanSummary + func Index[E comparable](s []E, v E) int + func PrintJSONData(data interface{}, fields string) error + func RunCommand(cmd *exec.Cmd) ([]byte, error) + func RunCommandAndParseOutputLineByLine(cmd *exec.Cmd, pfn, ecFn processFn) error + func UnwrapErrorStrings(err error) []string + func UnwrapErrors(err error) []error + type CmdRunError struct + Cmd *exec.Cmd + Err error + Stderr string + Stdout []byte + func (r CmdRunError) Error() string + type SourceType string + const DIR + const DOCKERARCHIVE + const FILE + const IMAGE + const OCIARCHIVE + const OCIDIR + const ROOTFS + const SBOM