validation

package
v0.0.0-...-0111f8f Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LEGIT_PROVENANCE_PREFIX = "legit-provenance"
	PROVENANCE_SIGNING_KEY  = "/attestation-key.pub"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
	Logger *logrus.Entry
}

Validator is a container for validation

func NewValidator

func NewValidator(logger *logrus.Entry) *Validator

NewValidator returns an initialised instance of Validator

func (*Validator) ValidatePod

func (v *Validator) ValidatePod(pod *corev1.Pod) (validation, error)

ValidatePod returns true if a pod is valid

Jump to

Keyboard shortcuts

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