Documentation ¶
Index ¶
- Variables
- func BuildImpactPathsForScanResponse(scanResult []services.ScanResponse, dependencyTree []*xrayUtils.GraphNode) []services.ScanResponse
- func CreateTestWorkspace(t *testing.T, sourceDir string) (string, func())
- func GetExcludePattern(params utils.AuditParams) string
- func LogExecutableVersion(executable string)
- func RunXrayDependenciesTreeScanGraph(dependencyTree *xrayUtils.GraphNode, progress ioUtils.ProgressMgr, ...) (results []services.ScanResponse, err error)
- func SuspectCurationBlockedError(isCurationCmd bool, tech coreutils.Technology, cmdOutput string) (msgToUser string)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultExcludePatterns = []string{"*.git*", "*node_modules*", "*target*", "*venv*", "*test*"}
Functions ¶
func BuildImpactPathsForScanResponse ¶
func BuildImpactPathsForScanResponse(scanResult []services.ScanResponse, dependencyTree []*xrayUtils.GraphNode) []services.ScanResponse
BuildImpactPathsForScanResponse builds the full impact paths for each vulnerability found in the scanResult argument, using the dependencyTrees argument. Returns the updated services.ScanResponse slice.
func CreateTestWorkspace ¶
func GetExcludePattern ¶ added in v1.0.4
func GetExcludePattern(params utils.AuditParams) string
func LogExecutableVersion ¶
func LogExecutableVersion(executable string)
GetExecutableVersion gets an executable version and prints to the debug log if possible. Only supported for package managers that use "--version".
func RunXrayDependenciesTreeScanGraph ¶
func RunXrayDependenciesTreeScanGraph(dependencyTree *xrayUtils.GraphNode, progress ioUtils.ProgressMgr, technology coreutils.Technology, scanGraphParams *scangraph.ScanGraphParams) (results []services.ScanResponse, err error)
func SuspectCurationBlockedError ¶ added in v1.1.0
func SuspectCurationBlockedError(isCurationCmd bool, tech coreutils.Technology, cmdOutput string) (msgToUser string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.