Help us shape the future of Go! Take the 2026 Go Developer Survey

artifact

package
v1.41.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 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 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