vulnerabilities

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadWriter added in v0.2.6

type ReadWriter interface {
	Reader
	Writer
}

type Reader added in v0.2.6

type Reader interface {
	Read(ctx context.Context, workload kube.Object) (WorkloadVulnerabilities, error)
}

type Scanner

type Scanner interface {
	Scan(ctx context.Context, workload kube.Object) (WorkloadVulnerabilities, error)
}

Scanner defines methods for a synchronous vulnerability scanner. The implementations of the Scanner interface are supposed to block.

Scan scans all container images of the specified Kubernetes workload. Returns a map of container names to VulnerabilityReports.

type ScannerAsync added in v0.2.6

type ScannerAsync interface {
	PrepareScanJob(ctx context.Context, workload kube.Object, spec corev1.PodSpec, auths map[string]docker.Auth) (*batchv1.Job, *corev1.Secret, error)
	GetVulnerabilityReportsByScanJob(ctx context.Context, job *batchv1.Job) (WorkloadVulnerabilities, error)
}

ScannerAsync defines methods for a vulnerability scanner which is run as a Kubernetes Job.

PrepareScanJob prepares a Job descriptor for the specified Kubernetes workload with the given Pod descriptor. The returned Job can be sent to the Kubernetes API and scheduled for execution.

GetVulnerabilityReportsByScanJob returns WorkloadVulnerabilities from the completed scan Job.

type WorkloadVulnerabilities added in v0.2.6

type WorkloadVulnerabilities map[string]starboard.VulnerabilityReport

WorkloadVulnerabilities holds VulnerabilityReports for each container of a Kubernetes workload.

type Writer

type Writer interface {
	Write(ctx context.Context, reports WorkloadVulnerabilities, owner metav1.Object) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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