package
1.429.0
Repository: https://github.com/sap/jenkins-library.git
Documentation: pkg.go.dev

# Functions

CountSecurityVulnerabilities counts the security vulnerabilities above severityLimit.
CreateCustomVulnerabilityReport creates a vulnerability ScanReport to be used for uploading into various sinks.
No description provided by the author
Creates a SARIF result from the Alerts that were brought up by the scan.
NewScanUtilsMock returns an initialized ScanUtilsMock instance.
NewSystem constructs a new System instance.
NewSystemMock returns a pointer to a new instance of SystemMock.
NewSystemMockWithProjectName returns a pointer to a new instance of SystemMock using a project with a defined name.
ReportSha creates a SHA unique to the WS product and scan to be used as part of the report filename.
WriteCustomVulnerabilityReports creates an HTML and a JSON format file based on the alerts brought up by the scan.
No description provided by the author
WriteSarifFile write a JSON sarif format file for upload into e.g.

# Constants

DateTimeLayout is the layout of the time format used by the WhiteSource API.
ReportsDirectory defines the subfolder for the WhiteSource reports which are generated.

# Structs

Alert.
Assignment describes a list of UserAssignments and GroupAssignments which can be attributed to a WhiteSource Product.
ConfigOption defines a dedicated WhiteSource config which can be enforced if required.
DownloadedFile records what URL has been downloaded to which file.
Fix defines a Fix as returned by WhiteSource.
GroupAssignment refers to the name of a particular group in WhiteSource.
Library.
NpmInstall records in which directory "npm install" has been invoked and for which package.json files.
Product defines a WhiteSource product with name and token.
Project defines a WhiteSource project with name and token.
Reference defines a reference for the library affected.
ReportOptions defines options for downloading reports after scanning.
Request defines a request object to be sent to the WhiteSource system.
Scan stores information about scanned WhiteSource projects (modules).
ScanOptions contains parameters needed during the scan.
ScanUtilsMock is an implementation of the Utils interface that can be used during tests.
System defines a WhiteSource System including respective tokens (e.g.
SystemMock stores a number of WhiteSource objects and, based on that, mocks the behavior of System.
UserAssignment holds an email address for a WhiteSource user which can be assigned to a WhiteSource Product in a specific role.
Vulnerability defines a vulnerability as returned by WhiteSource.

# Interfaces

File defines the method subset we use from os.File.
Utils captures all external functionality that needs to be exchangeable in tests.

# Type aliases

ConfigOptions contains a list of config options (ConfigOption).