scan

package
v2.45.3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuildScanMinVersion                       = "3.37.0"
	BuildScanIncludeVulnerabilitiesMinVersion = "3.40.0"
)
View Source
const (
	BypassArchiveLimitsMinXrayVersion = "3.59.0"
)
View Source
const (
	DockerScanMinXrayVersion = "3.40.0"
)

Variables

This section is empty.

Functions

func DownloadIndexerIfNeeded added in v2.41.5

func DownloadIndexerIfNeeded(xrayManager *xray.XrayServicesManager, xrayVersionStr string) (indexerPath string, err error)

Types

type BuildScanCommand

type BuildScanCommand struct {
	// contains filtered or unexported fields
}

func NewBuildScanCommand

func NewBuildScanCommand() *BuildScanCommand

func (*BuildScanCommand) CommandName

func (bsc *BuildScanCommand) CommandName() string

func (*BuildScanCommand) Run

func (bsc *BuildScanCommand) Run() (err error)

Scan published builds with Xray

func (*BuildScanCommand) ServerDetails

func (bsc *BuildScanCommand) ServerDetails() (*config.ServerDetails, error)

func (*BuildScanCommand) SetBuildConfiguration

func (bsc *BuildScanCommand) SetBuildConfiguration(buildConfiguration *rtutils.BuildConfiguration) *BuildScanCommand

func (*BuildScanCommand) SetFailBuild

func (bsc *BuildScanCommand) SetFailBuild(failBuild bool) *BuildScanCommand

func (*BuildScanCommand) SetIncludeVulnerabilities

func (bsc *BuildScanCommand) SetIncludeVulnerabilities(include bool) *BuildScanCommand

func (*BuildScanCommand) SetOutputFormat

func (bsc *BuildScanCommand) SetOutputFormat(format xrutils.OutputFormat) *BuildScanCommand

func (*BuildScanCommand) SetPrintExtendedTable added in v2.10.0

func (bsc *BuildScanCommand) SetPrintExtendedTable(printExtendedTable bool) *BuildScanCommand

func (*BuildScanCommand) SetRescan added in v2.17.0

func (bsc *BuildScanCommand) SetRescan(rescan bool) *BuildScanCommand

func (*BuildScanCommand) SetServerDetails

func (bsc *BuildScanCommand) SetServerDetails(server *config.ServerDetails) *BuildScanCommand

type DockerScanCommand

type DockerScanCommand struct {
	ScanCommand
	// contains filtered or unexported fields
}

func NewDockerScanCommand

func NewDockerScanCommand() *DockerScanCommand

func (*DockerScanCommand) CommandName

func (dsc *DockerScanCommand) CommandName() string

func (*DockerScanCommand) Run

func (dsc *DockerScanCommand) Run() (err error)

func (*DockerScanCommand) SetImageTag

func (dsc *DockerScanCommand) SetImageTag(imageTag string) *DockerScanCommand

func (*DockerScanCommand) SetTargetRepoPath added in v2.27.0

func (dsc *DockerScanCommand) SetTargetRepoPath(repoPath string) *DockerScanCommand

type FileContext

type FileContext func(string) parallel.TaskFunc

type ScanCommand

type ScanCommand struct {
	// contains filtered or unexported fields
}

func NewScanCommand

func NewScanCommand() *ScanCommand

func (*ScanCommand) CommandName

func (scanCmd *ScanCommand) CommandName() string

func (*ScanCommand) Run

func (scanCmd *ScanCommand) Run() (err error)

func (*ScanCommand) ServerDetails

func (scanCmd *ScanCommand) ServerDetails() (*config.ServerDetails, error)

func (*ScanCommand) SetBypassArchiveLimits added in v2.23.2

func (scanCmd *ScanCommand) SetBypassArchiveLimits(bypassArchiveLimits bool) *ScanCommand

func (*ScanCommand) SetFail added in v2.8.0

func (scanCmd *ScanCommand) SetFail(fail bool) *ScanCommand

func (*ScanCommand) SetFixableOnly added in v2.32.0

func (scanCmd *ScanCommand) SetFixableOnly(fixable bool) *ScanCommand

func (*ScanCommand) SetIncludeLicenses

func (scanCmd *ScanCommand) SetIncludeLicenses(include bool) *ScanCommand

func (*ScanCommand) SetIncludeVulnerabilities

func (scanCmd *ScanCommand) SetIncludeVulnerabilities(include bool) *ScanCommand

func (*ScanCommand) SetMinSeverityFilter added in v2.32.0

func (scanCmd *ScanCommand) SetMinSeverityFilter(minSeverityFilter string) *ScanCommand

func (*ScanCommand) SetOutputFormat

func (scanCmd *ScanCommand) SetOutputFormat(format xrutils.OutputFormat) *ScanCommand

func (*ScanCommand) SetPrintExtendedTable added in v2.10.0

func (scanCmd *ScanCommand) SetPrintExtendedTable(printExtendedTable bool) *ScanCommand

func (*ScanCommand) SetProgress added in v2.10.0

func (scanCmd *ScanCommand) SetProgress(progress ioUtils.ProgressMgr)

func (*ScanCommand) SetProject

func (scanCmd *ScanCommand) SetProject(project string) *ScanCommand

func (*ScanCommand) SetServerDetails

func (scanCmd *ScanCommand) SetServerDetails(server *config.ServerDetails) *ScanCommand

func (*ScanCommand) SetSpec

func (scanCmd *ScanCommand) SetSpec(spec *spec.SpecFiles) *ScanCommand

func (*ScanCommand) SetThreads

func (scanCmd *ScanCommand) SetThreads(threads int) *ScanCommand

func (*ScanCommand) SetWatches

func (scanCmd *ScanCommand) SetWatches(watches []string) *ScanCommand

Jump to

Keyboard shortcuts

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