audit

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenericAudit

func GenericAudit(
	xrayGraphScanPrams services.XrayGraphScanParams,
	serverDetails *config.ServerDetails,
	excludeTestDeps,
	useWrapper,
	insecureTls bool,
	args []string,
	progress ioUtils.ProgressMgr,
	technologies ...string) (results []services.ScanResponse, isMultipleRootProject bool, err error)

GenericAudit audits the project found in the current directory using Xray.

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) 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

Jump to

Keyboard shortcuts

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