scanner

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAPIFailed = errors.New("API query failed")

ErrAPIFailed describes errors related to querying API endpoints.

View Source
var NoDirectoryPathsFoundErr = errors.New("no directory paths provided to scan")

NoDirectoryPathsFoundErr for when no directory paths are provided to scan.

View Source
var NoPackagesFoundErr = errors.New("no packages found in scan")

NoPackagesFoundErr for when no packages are found during a scan.

View Source
var VulnerabilitiesFoundErr = errors.New("vulnerabilities found")

VulnerabilitiesFoundErr includes both vulnerabilities being found or license violations being found, however, will not be raised if only uncalled vulnerabilities are found.

Functions

func DoScan

DoScan Perform datadog-sbom-generator scan action, with optional reporter to output information

Types

type DDEnvVars

type DDEnvVars struct {
	BaseURL  string
	JwtToken string
}

type ScannerActions

type ScannerActions struct {
	DirectoryPaths []string
	ExcludePaths   []string
	Recursive      bool
	NoIgnore       bool
	Reachability   bool
	Debug          bool
	EnableParsers  []string
	DDEnvVars      DDEnvVars
}

Jump to

Keyboard shortcuts

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