validation

package
v0.0.0-...-8f75a06 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 4 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