validation

package
v0.0.0-...-d75b4c1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
	Logger *logrus.Entry
}

Validator is a container for mutation

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