vulnerabilities

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	kube.SecretsReader
	// contains filtered or unexported fields
}

func NewScanner added in v0.7.0

func NewScanner(
	scheme *runtime.Scheme,
	clientset kubernetes.Interface,
	config starboard.TrivyConfig,
	opts kube.ScannerOpts,
) *Scanner

NewScanner constructs a new vulnerability Scanner with the specified options and Kubernetes client Interface.

func (*Scanner) GetCredentials added in v0.7.1

func (s *Scanner) GetCredentials(ctx context.Context, spec corev1.PodSpec, ns string) (map[string]docker.Auth, error)

func (*Scanner) GetVulnerabilityReportsByScanJob added in v0.7.0

func (s *Scanner) GetVulnerabilityReportsByScanJob(ctx context.Context, job *batchv1.Job, owner metav1.Object) ([]v1alpha1.VulnerabilityReport, error)

func (*Scanner) PrepareScanJob added in v0.7.0

func (s *Scanner) PrepareScanJob(workload kube.Object, spec corev1.PodSpec, credentials map[string]docker.Auth) (*batchv1.Job, []*corev1.Secret, error)

func (*Scanner) Scan

func (s *Scanner) Scan(ctx context.Context, workload kube.Object) ([]v1alpha1.VulnerabilityReport, error)

Jump to

Keyboard shortcuts

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