errors

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetadataEnvPath = field.NewPath("metadata").Child("labels").Child(config.EnvironmentLabelKey)
)

Functions

This section is empty.

Types

type ValidationError

type ValidationError struct {
	Errors   field.ErrorList
	Warnings admission.Warnings
	// contains filtered or unexported fields
}

func NewValidationError

func NewValidationError(gk schema.GroupKind, ref types.NamedObject) *ValidationError

func (*ValidationError) AddError

func (e *ValidationError) AddError(err *field.Error)

func (*ValidationError) AddInvalidError

func (e *ValidationError) AddInvalidError(path *field.Path, value any, message string)

func (*ValidationError) AddRequiredError

func (e *ValidationError) AddRequiredError(path *field.Path, message string)

func (*ValidationError) AddWarning

func (e *ValidationError) AddWarning(message string)

func (*ValidationError) AddWarningf

func (e *ValidationError) AddWarningf(path *field.Path, value any, format string, args ...any)

func (*ValidationError) BuildError

func (e *ValidationError) BuildError() error

func (*ValidationError) BuildWarnings

func (e *ValidationError) BuildWarnings() admission.Warnings

func (*ValidationError) HasErrors

func (e *ValidationError) HasErrors() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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