Documentation
¶
Index ¶
- Constants
- Variables
- func CreateTestWorkspace(t *testing.T, sourceDir string) (string, func())
- func GetExcludePattern(configProfile *xscservices.ConfigProfile, isRecursive bool, ...) string
- func GetMsgToUserForCurationBlock(isCurationCmd bool, tech techutils.Technology, cmdOutput string) (msgToUser string)
- func LogExecutableVersion(executable string)
- func RunXrayDependenciesTreeScanGraph(scanGraphParams *scangraph.ScanGraphParams) (results []services.ScanResponse, err error)
- type BuildInfoBomGeneratorParams
Constants ¶
View Source
const (
// Visual Studio inner directory.
DotVsRepoSuffix = ".vs"
)
Variables ¶
View Source
var CurationErrorMsgToUserTemplate = "Failed to retrieve the dependencies tree for the %s project. Please contact your " +
"Artifactory administrator to verify pass-through for Curation audit is enabled for your project"
Functions ¶
func CreateTestWorkspace ¶
func GetExcludePattern ¶
func GetExcludePattern(configProfile *xscservices.ConfigProfile, isRecursive bool, exclusions ...string) string
func GetMsgToUserForCurationBlock ¶
func GetMsgToUserForCurationBlock(isCurationCmd bool, tech techutils.Technology, cmdOutput string) (msgToUser 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(scanGraphParams *scangraph.ScanGraphParams) (results []services.ScanResponse, err error)
Types ¶
type BuildInfoBomGeneratorParams ¶
type BuildInfoBomGeneratorParams struct {
XrayVersion string
Progress ioUtils.ProgressMgr
ExclusionPattern string
AllowPartialResults bool
// Artifactory Repository params
ServerDetails *config.ServerDetails
DependenciesRepository string
IgnoreConfigFile bool
InsecureTls bool
// Install params
SkipAutoInstall bool
InstallCommandName string
Args []string
InstallCommandArgs []string
// Curation params
IsCurationCmd bool
// Java params
IsMavenDepTreeInstalled bool
UseWrapper bool
UseIncludedBuilds bool
// Python params
PipRequirementsFile string
// Npm params
NpmIgnoreNodeModules bool
NpmOverwritePackageLock bool
// Pnpm params
MaxTreeDepth string
// Docker params
DockerImageName string
// NuGet params
SolutionFilePath string
}
func (*BuildInfoBomGeneratorParams) SetConanProfile ¶
func (bbp *BuildInfoBomGeneratorParams) SetConanProfile(file string) *BuildInfoBomGeneratorParams
func (*BuildInfoBomGeneratorParams) SetNpmScope ¶
func (bbp *BuildInfoBomGeneratorParams) SetNpmScope(depType string) *BuildInfoBomGeneratorParams
Click to show internal directories.
Click to hide internal directories.