artifact

package
v1.24.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

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 Steps

func Steps(steps ...XrayScanStep) ScanCompleteOption

type ScanCompleteParams

type ScanCompleteParams struct {
	Overall 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