audit

package
v2.24.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenericAudit

func GenericAudit(
	xrayGraphScanParams services.XrayGraphScanParams,
	serverDetails *config.ServerDetails,
	excludeTestDeps,
	useWrapper,
	insecureTls bool,
	args []string,
	progress ioUtils.ProgressMgr,
	requirementsFile string,
	ignoreConfigFile bool,
	workingDirs []string,
	technologies ...string) (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

Jump to

Keyboard shortcuts

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