types

package
v0.0.0-...-ed3a068 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageScanResult

type ImageScanResult struct {
	PodName               string
	PodNamespace          string
	ImageName             string
	ContainerName         string
	ImageHash             string
	PodUid                string
	Vulnerabilities       *grype_models.Document
	DockerfileScanResults dockle_types.AssessmentMap
	LayerCommands         []*docker.FsLayerCommand
	Success               bool
	ScanErrors            []*ScanError
}

type ScanError

type ScanError struct {
	ErrMsg    string
	ErrType   string
	ErrSource ScanErrorSource
}

type ScanErrorSource

type ScanErrorSource string
const (
	ScanErrSourceDockle ScanErrorSource = "ScanErrSourceDockle"
	ScanErrSourceVul    ScanErrorSource = "ScanErrSourceVulnerability"
	ScanErrSourceJob    ScanErrorSource = "ScanErrSourceJob"
)

type ScanErrorType

type ScanErrorType string
const (
	JobRun     ScanErrorType = "errorJobRun"
	JobTimeout ScanErrorType = "errorJobTimeout"
)

type ScanProgress

type ScanProgress struct {
	ImagesToScan          uint32
	ImagesStartedToScan   uint32
	ImagesCompletedToScan uint32
}

type ScanResults

type ScanResults struct {
	ImageScanResults []*ImageScanResult
	Progress         ScanProgress
}

Jump to

Keyboard shortcuts

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