vulnerabilityreport

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Owner(owner metav1.Object) Builder
	Container(name string) Builder
	PodSpecHash(hash string) Builder
	Result(result v1alpha1.VulnerabilityScanResult) Builder
	Get() (v1alpha1.VulnerabilityReport, error)
}

func NewBuilder

func NewBuilder(scheme *runtime.Scheme) Builder

type ReadWriter

type ReadWriter interface {
	Reader
	Writer
}

func NewReadWriter

func NewReadWriter(client clientset.Interface) ReadWriter

type Reader

type Reader interface {
	FindByOwner(context.Context, kube.Object) ([]starboard.VulnerabilityReport, error)
}

type Scanner

type Scanner interface {

	// GetPodSpec describes the pod that will be created when executing a scan job
	// for the specified pod descriptor.
	GetPodSpec(spec corev1.PodSpec) (corev1.PodSpec, error)

	// ParseVulnerabilityScanResult is a callback to parse and convert logs of the pod controlled
	// by a scan job to the Starboard model.
	ParseVulnerabilityScanResult(imageRef string, logsReader io.ReadCloser) (
		v1alpha1.VulnerabilityScanResult, error)
}

Scanner defines methods implemented by vulnerability scanner vendors.

type StoreInterface

func NewStore

func NewStore(client client.Client, scheme *runtime.Scheme) StoreInterface

type WorkloadVulnerabilities

type WorkloadVulnerabilities map[string]starboard.VulnerabilityScanResult

WorkloadVulnerabilities holds VulnerabilityReports for each container of a Kubernetes workload. Deprecated use a slice of VulnerabilityReports instead

type Writer

type Writer interface {
	Write(context.Context, []starboard.VulnerabilityReport) error
}

Jump to

Keyboard shortcuts

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