2020-10-20 09:49:26 +02:00
|
|
|
package whitesource
|
|
|
|
|
|
|
|
// ScanOptions contains parameters needed during the scan.
|
|
|
|
type ScanOptions struct {
|
2021-02-03 15:52:48 +02:00
|
|
|
BuildTool string
|
2020-10-20 09:49:26 +02:00
|
|
|
// ScanType defines the type of scan. Can be "maven" or "mta" for scanning with Maven or "npm"/"yarn".
|
2021-02-03 15:52:48 +02:00
|
|
|
ScanType string
|
|
|
|
OrgToken string
|
|
|
|
UserToken string
|
|
|
|
ProductName string
|
|
|
|
ProductToken string
|
|
|
|
ProductVersion string
|
2020-10-20 09:49:26 +02:00
|
|
|
// ProjectName is an optional name for an "aggregator" project.
|
|
|
|
// All scanned maven modules will be reflected in the aggregate project.
|
2021-02-03 15:52:48 +02:00
|
|
|
ProjectName string
|
|
|
|
|
|
|
|
BuildDescriptorFile string
|
2020-10-20 09:49:26 +02:00
|
|
|
BuildDescriptorExcludeList []string
|
|
|
|
// PomPath is the path to root build descriptor file.
|
|
|
|
PomPath string
|
|
|
|
// M2Path is the path to the local maven repository.
|
|
|
|
M2Path string
|
|
|
|
// GlobalSettingsFile is an optional path to a global maven settings file.
|
|
|
|
GlobalSettingsFile string
|
|
|
|
// ProjectSettingsFile is an optional path to a local maven settings file.
|
|
|
|
ProjectSettingsFile string
|
2020-10-30 16:05:14 +02:00
|
|
|
// InstallArtifacts installs artifacts from all maven modules to the local repository
|
|
|
|
InstallArtifacts bool
|
2020-10-20 09:49:26 +02:00
|
|
|
|
|
|
|
// DefaultNpmRegistry is an optional default registry for NPM.
|
|
|
|
DefaultNpmRegistry string
|
|
|
|
|
|
|
|
AgentDownloadURL string
|
|
|
|
AgentFileName string
|
|
|
|
ConfigFilePath string
|
|
|
|
|
2021-02-03 15:52:48 +02:00
|
|
|
JreDownloadURL string
|
|
|
|
|
|
|
|
Includes []string
|
|
|
|
Excludes []string
|
|
|
|
|
|
|
|
AgentURL string
|
|
|
|
ServiceURL string
|
|
|
|
|
2021-05-03 10:53:16 +02:00
|
|
|
ScanPath string
|
|
|
|
|
2021-02-03 15:52:48 +02:00
|
|
|
Verbose bool
|
2020-10-20 09:49:26 +02:00
|
|
|
}
|