Documentation ¶
Index ¶
- func GenericAudit(params *Params) (results []services.ScanResponse, isMultipleRoot bool, err error)
- type GenericAuditCommand
- func (auditCmd *GenericAuditCommand) CommandName() string
- func (auditCmd *GenericAuditCommand) CreateXrayGraphScanParams() services.XrayGraphScanParams
- func (auditCmd *GenericAuditCommand) Run() (err error)
- func (auditCmd *GenericAuditCommand) ServerDetails() (*config.ServerDetails, error)
- func (auditCmd *GenericAuditCommand) SetExcludeTestDependencies(excludeTestDependencies bool) *GenericAuditCommand
- func (auditCmd *GenericAuditCommand) SetFail(fail bool) *GenericAuditCommand
- func (auditCmd *GenericAuditCommand) SetIncludeLicenses(include bool) *GenericAuditCommand
- func (auditCmd *GenericAuditCommand) SetIncludeVulnerabilities(include bool) *GenericAuditCommand
- func (auditCmd *GenericAuditCommand) SetInsecureTls(insecureTls bool) *GenericAuditCommand
- func (auditCmd *GenericAuditCommand) SetNpmScope(depType string) *GenericAuditCommand
- func (auditCmd *GenericAuditCommand) SetOutputFormat(format xrutils.OutputFormat) *GenericAuditCommand
- func (auditCmd *GenericAuditCommand) SetPipRequirementsFile(requirementsFile string) *GenericAuditCommand
- func (auditCmd *GenericAuditCommand) SetPrintExtendedTable(printExtendedTable bool) *GenericAuditCommand
- func (auditCmd *GenericAuditCommand) SetProgress(progress ioUtils.ProgressMgr)
- func (auditCmd *GenericAuditCommand) SetProject(project string) *GenericAuditCommand
- func (auditCmd *GenericAuditCommand) SetServerDetails(server *config.ServerDetails) *GenericAuditCommand
- func (auditCmd *GenericAuditCommand) SetTargetRepoPath(repoPath string) *GenericAuditCommand
- func (auditCmd *GenericAuditCommand) SetTechnologies(technologies []string) *GenericAuditCommand
- func (auditCmd *GenericAuditCommand) SetUseWrapper(useWrapper bool) *GenericAuditCommand
- func (auditCmd *GenericAuditCommand) SetWatches(watches []string) *GenericAuditCommand
- func (auditCmd *GenericAuditCommand) SetWorkingDirs(dirs []string) *GenericAuditCommand
- type Params
- func (params *Params) Args() []string
- func (params *Params) DepsRepo() string
- func (params *Params) ExcludeTestDeps() bool
- func (params *Params) IgnoreConfigFile() bool
- func (params *Params) InsecureTls() bool
- func (params *Params) InstallFunc() func(tech string) error
- func (params *Params) Progress() ioUtils.ProgressMgr
- func (params *Params) RequirementsFile() string
- func (params *Params) ServerDetails() *config.ServerDetails
- func (params *Params) SetArgs(args []string) *Params
- func (params *Params) SetDepsRepo(depsRepo string) *Params
- func (params *Params) SetExcludeTestDeps(excludeTestDeps bool) *Params
- func (params *Params) SetIgnoreConfigFile(ignoreConfigFile bool) *Params
- func (params *Params) SetInsecureTLS(insecureTls bool) *Params
- func (params *Params) SetInstallFunc(installFunc func(tech string) error) *Params
- func (params *Params) SetProgressBar(progress ioUtils.ProgressMgr) *Params
- func (params *Params) SetReleasesRepo(releasesRepo string) *Params
- func (params *Params) SetRequirementsFile(requirementsFile string) *Params
- func (params *Params) SetServerDetails(serverDetails *config.ServerDetails) *Params
- func (params *Params) SetTechnologies(technologies ...string) *Params
- func (params *Params) SetUseWrapper(useWrapper bool) *Params
- func (params *Params) SetWorkingDirs(workingDirs []string) *Params
- func (params *Params) SetXrayGraphScanParams(xrayGraphScanParams services.XrayGraphScanParams) *Params
- func (params *Params) Technologies() []string
- func (params *Params) UseWrapper() bool
- func (params *Params) WorkingDirs() []string
- func (params *Params) XrayGraphScanParams() services.XrayGraphScanParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenericAudit ¶
func GenericAudit(params *Params) (results []services.ScanResponse, isMultipleRoot bool, err error)
GenericAudit audits all the projects found in the given workingDirs
Types ¶
type GenericAuditCommand ¶
type GenericAuditCommand struct { OutputFormat xrutils.OutputFormat IncludeVulnerabilities bool IncludeLicenses bool Fail bool PrintExtendedTable bool // contains filtered or unexported fields }
func NewGenericAuditCommand ¶
func NewGenericAuditCommand() *GenericAuditCommand
func (*GenericAuditCommand) CommandName ¶
func (auditCmd *GenericAuditCommand) CommandName() string
func (*GenericAuditCommand) CreateXrayGraphScanParams ¶
func (auditCmd *GenericAuditCommand) CreateXrayGraphScanParams() services.XrayGraphScanParams
func (*GenericAuditCommand) Run ¶
func (auditCmd *GenericAuditCommand) Run() (err error)
func (*GenericAuditCommand) ServerDetails ¶
func (auditCmd *GenericAuditCommand) ServerDetails() (*config.ServerDetails, error)
func (*GenericAuditCommand) SetExcludeTestDependencies ¶
func (auditCmd *GenericAuditCommand) SetExcludeTestDependencies(excludeTestDependencies bool) *GenericAuditCommand
func (*GenericAuditCommand) SetFail ¶
func (auditCmd *GenericAuditCommand) SetFail(fail bool) *GenericAuditCommand
func (*GenericAuditCommand) SetIncludeLicenses ¶
func (auditCmd *GenericAuditCommand) SetIncludeLicenses(include bool) *GenericAuditCommand
func (*GenericAuditCommand) SetIncludeVulnerabilities ¶
func (auditCmd *GenericAuditCommand) SetIncludeVulnerabilities(include bool) *GenericAuditCommand
func (*GenericAuditCommand) SetInsecureTls ¶
func (auditCmd *GenericAuditCommand) SetInsecureTls(insecureTls bool) *GenericAuditCommand
func (*GenericAuditCommand) SetNpmScope ¶
func (auditCmd *GenericAuditCommand) SetNpmScope(depType string) *GenericAuditCommand
func (*GenericAuditCommand) SetOutputFormat ¶
func (auditCmd *GenericAuditCommand) SetOutputFormat(format xrutils.OutputFormat) *GenericAuditCommand
func (*GenericAuditCommand) SetPipRequirementsFile ¶ added in v2.19.0
func (auditCmd *GenericAuditCommand) SetPipRequirementsFile(requirementsFile string) *GenericAuditCommand
func (*GenericAuditCommand) SetPrintExtendedTable ¶
func (auditCmd *GenericAuditCommand) SetPrintExtendedTable(printExtendedTable bool) *GenericAuditCommand
func (*GenericAuditCommand) SetProgress ¶ added in v2.17.0
func (auditCmd *GenericAuditCommand) SetProgress(progress ioUtils.ProgressMgr)
func (*GenericAuditCommand) SetProject ¶
func (auditCmd *GenericAuditCommand) SetProject(project string) *GenericAuditCommand
func (*GenericAuditCommand) SetServerDetails ¶
func (auditCmd *GenericAuditCommand) SetServerDetails(server *config.ServerDetails) *GenericAuditCommand
func (*GenericAuditCommand) SetTargetRepoPath ¶
func (auditCmd *GenericAuditCommand) SetTargetRepoPath(repoPath string) *GenericAuditCommand
func (*GenericAuditCommand) SetTechnologies ¶
func (auditCmd *GenericAuditCommand) SetTechnologies(technologies []string) *GenericAuditCommand
func (*GenericAuditCommand) SetUseWrapper ¶
func (auditCmd *GenericAuditCommand) SetUseWrapper(useWrapper bool) *GenericAuditCommand
func (*GenericAuditCommand) SetWatches ¶
func (auditCmd *GenericAuditCommand) SetWatches(watches []string) *GenericAuditCommand
func (*GenericAuditCommand) SetWorkingDirs ¶ added in v2.23.0
func (auditCmd *GenericAuditCommand) SetWorkingDirs(dirs []string) *GenericAuditCommand
type Params ¶ added in v2.29.8
type Params struct {
// contains filtered or unexported fields
}
func NewAuditParams ¶ added in v2.29.8
func NewAuditParams() *Params
func (*Params) ExcludeTestDeps ¶ added in v2.29.8
func (*Params) IgnoreConfigFile ¶ added in v2.29.8
func (*Params) InsecureTls ¶ added in v2.29.8
func (*Params) InstallFunc ¶ added in v2.29.8
func (*Params) Progress ¶ added in v2.29.8
func (params *Params) Progress() ioUtils.ProgressMgr
func (*Params) RequirementsFile ¶ added in v2.29.8
func (*Params) ServerDetails ¶ added in v2.29.8
func (params *Params) ServerDetails() *config.ServerDetails
func (*Params) SetDepsRepo ¶ added in v2.29.8
func (*Params) SetExcludeTestDeps ¶ added in v2.29.8
func (*Params) SetIgnoreConfigFile ¶ added in v2.29.8
func (*Params) SetInsecureTLS ¶ added in v2.29.8
func (*Params) SetInstallFunc ¶ added in v2.29.8
func (*Params) SetProgressBar ¶ added in v2.29.8
func (params *Params) SetProgressBar(progress ioUtils.ProgressMgr) *Params
func (*Params) SetReleasesRepo ¶ added in v2.31.1
func (*Params) SetRequirementsFile ¶ added in v2.29.8
func (*Params) SetServerDetails ¶ added in v2.29.8
func (params *Params) SetServerDetails(serverDetails *config.ServerDetails) *Params
func (*Params) SetTechnologies ¶ added in v2.29.8
func (*Params) SetUseWrapper ¶ added in v2.29.8
func (*Params) SetWorkingDirs ¶ added in v2.29.8
func (*Params) SetXrayGraphScanParams ¶ added in v2.29.8
func (params *Params) SetXrayGraphScanParams(xrayGraphScanParams services.XrayGraphScanParams) *Params
func (*Params) Technologies ¶ added in v2.29.8
func (*Params) UseWrapper ¶ added in v2.29.8
func (*Params) WorkingDirs ¶ added in v2.29.8
func (*Params) XrayGraphScanParams ¶ added in v2.29.8
func (params *Params) XrayGraphScanParams() services.XrayGraphScanParams
Click to show internal directories.
Click to hide internal directories.