kubebench

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 Config added in v0.6.0

type Config interface {
	GetKubeBenchImageRef() string
}

type Converter

type Converter interface {
	Convert(config Config, reader io.Reader) (aquasecurityv1alpha1.CISKubeBenchOutput, error)
}
var DefaultConverter Converter = &converter{}

type ReadWriter added in v0.3.0

type ReadWriter interface {
	Writer
	Reader
}

type Reader added in v0.3.0

type Reader interface {
	Read(ctx context.Context, node kube.Object) (starboard.CISKubeBenchOutput, error)
}

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func NewScanner

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

func (*Scanner) Scan

func (s *Scanner) Scan(ctx context.Context, node corev1.Node) (report v1alpha1.CISKubeBenchOutput, err error)

type Writer

type Writer interface {
	Write(ctx context.Context, report starboard.CISKubeBenchOutput, node *core.Node) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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