artifact

package
v1.41.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	XrayScanStepSca                = "SCA Scan"
	XrayScanStepContextualAnalysis = "Contextual Analysis Enrichment"
	XrayScanStepIaC                = "IaC Scan"
	XrayScanStepSecrets            = "Secret Detection Scan"
	XrayScanStepServices           = "Services Scan"
	XrayScanStepApplication        = "Application Scan"
	XrayScanStepSast               = "Static Application Security Testing (SAST)"
	XrayScanStepViolations         = "Violations Reporting"
)
View Source
const (
	ArtifactStatusFetchingIntervalNano = 10 * 1e9      // nanoseconds converted to 10 seconds
	ArtifactStatusFetchTimeoutNano     = 20 * 60 * 1e9 // nanoseconds converted to 20 minutes
)

Variables

This section is empty.

Functions

func CheckStepsCompletion

func CheckStepsCompletion(details services.ArtifactDetailedStatus, steps []XrayScanStep) bool

func GetArtifactScanStatus

func GetArtifactScanStatus(xrayManager *xray.XrayServicesManager, repo, path string) (*services.ArtifactStatusResponse, error)

func IsScanCompleted

func IsScanCompleted(status services.ArtifactStatus) bool

func IsScanNotStarted

func IsScanNotStarted(status services.ArtifactStatus) bool

func WaitForArtifactScanStatus

func WaitForArtifactScanStatus(xrayManager *xray.XrayServicesManager, repo, path string, options ...ScanCompleteOption) error

No options provided = waiting for scan to start

Types

type ScanCompleteOption

type ScanCompleteOption func(params *ScanCompleteParams)

func OverallCompletion

func OverallCompletion() ScanCompleteOption

func ScanStarted added in v1.32.1

func ScanStarted() ScanCompleteOption

func Steps

func Steps(steps ...XrayScanStep) ScanCompleteOption

type ScanCompleteParams

type ScanCompleteParams struct {
	Overall            bool
	WaitForScanStarted bool
	Steps              []XrayScanStep
}

func NewScanCompleteParams

func NewScanCompleteParams(options ...ScanCompleteOption) *ScanCompleteParams

type XrayScanStep

type XrayScanStep string

Jump to

Keyboard shortcuts

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