audit

package
v2.39.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJavaProps added in v2.33.2

func CreateJavaProps(depsRepo string, serverDetails *config.ServerDetails) map[string]any

func GetTechDependencyTree added in v2.33.0

func GetTechDependencyTree(params *clientUtils.GraphBasicParams, tech coreutils.Technology) (flatTree []*xrayCmdUtils.GraphNode, err error)

Types

type GenericAuditCommand

type GenericAuditCommand struct {
	IncludeVulnerabilities bool
	IncludeLicenses        bool
	Fail                   bool
	PrintExtendedTable     bool
	Params
	// 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) 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) SetPrintExtendedTable

func (auditCmd *GenericAuditCommand) SetPrintExtendedTable(printExtendedTable bool) *GenericAuditCommand

func (*GenericAuditCommand) SetProject

func (auditCmd *GenericAuditCommand) SetProject(project string) *GenericAuditCommand

func (*GenericAuditCommand) SetTargetRepoPath

func (auditCmd *GenericAuditCommand) SetTargetRepoPath(repoPath string) *GenericAuditCommand

func (*GenericAuditCommand) SetWatches

func (auditCmd *GenericAuditCommand) SetWatches(watches []string) *GenericAuditCommand

type Params added in v2.29.8

type Params struct {
	*clientUtils.GraphBasicParams
	// contains filtered or unexported fields
}

func NewAuditParams added in v2.29.8

func NewAuditParams() *Params

func (*Params) FixableOnly added in v2.32.0

func (params *Params) FixableOnly() bool

func (*Params) InstallFunc added in v2.29.8

func (params *Params) InstallFunc() func(tech string) error

func (*Params) MinSeverityFilter added in v2.32.0

func (params *Params) MinSeverityFilter() string

func (*Params) SetFixableOnly added in v2.32.0

func (params *Params) SetFixableOnly(fixable bool) *Params

func (*Params) SetGraphBasicParams added in v2.36.0

func (params *Params) SetGraphBasicParams(gbp *clientUtils.GraphBasicParams) *Params

func (*Params) SetInstallFunc added in v2.29.8

func (params *Params) SetInstallFunc(installFunc func(tech string) error) *Params

func (*Params) SetMinSeverityFilter added in v2.32.0

func (params *Params) SetMinSeverityFilter(minSeverityFilter string) *Params

func (*Params) SetWorkingDirs added in v2.29.8

func (params *Params) SetWorkingDirs(workingDirs []string) *Params

func (*Params) SetXrayGraphScanParams added in v2.29.8

func (params *Params) SetXrayGraphScanParams(xrayGraphScanParams *services.XrayGraphScanParams) *Params

func (*Params) SetXrayVersion added in v2.36.0

func (params *Params) SetXrayVersion(version string) *Params

func (*Params) WorkingDirs added in v2.29.8

func (params *Params) WorkingDirs() []string

func (*Params) XrayGraphScanParams added in v2.29.8

func (params *Params) XrayGraphScanParams() *services.XrayGraphScanParams

func (*Params) XrayVersion added in v2.31.2

func (params *Params) XrayVersion() string

type Results added in v2.36.0

type Results struct {
	IsMultipleRootProject bool
	AuditError            error
	ExtendedScanResults   *xrutils.ExtendedScanResults
}

func RunAudit added in v2.36.0

func RunAudit(auditParams *Params) (results *Results, err error)

Runs an audit scan based on the provided auditParams. Returns an audit Results object containing all the scan results. If the current server is entitled for JAS, the advanced security results will be included in the scan results.

Jump to

Keyboard shortcuts

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