errors

package
v2.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDataPlaneNotSet = errors.New("no dataplane name set")

ErrDataPlaneNotSet is a custom error that must be used when a specific OwnerReference is expected to be on an object, but it is not found.

View Source
var ErrInvalidSemverVersion = errors.New("not a valid semver version")

ErrInvalidSemverVersion is a custom error that indicates a provided version string (which we were expecting to be in the format of <Major>.<Minor>.<Patch>) was invalid, and not in the expected format.

View Source
var ErrNoDataPlanePods = errors.New("no dataplane pods existing yet")

ErrNoDataPlanePods is a custom error that must be used when the DataPlane Deployment referenced by the ControlPlane has no pods ready yet.

View Source
var ErrUnexpectedObject = errors.New("unexpected object type provided")

ErrUnexpectedObject is a custom error that must be used when the cast of a object to an expected type fails.

Functions

This section is empty.

Types

type FetchingError added in v2.2.0

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

FetchingError is a custom error that must be used when an error occurs while fetching a resource from the Kubernetes API.

func NewFetchingError added in v2.2.0

func NewFetchingError(err error) FetchingError

NewFetchingError creates a new FetchingError with the provided error.

func (FetchingError) Error added in v2.2.0

func (e FetchingError) Error() string

Error returns the error message for the FetchingError.

func (FetchingError) Is added in v2.2.0

func (e FetchingError) Is(target error) bool

Is reports any error in err's tree matches target.

type NotAcceptedGatewayClassError added in v2.2.0

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

NotAcceptedGatewayClassError is an error which indicates that a provided GatewayClass is not accepted.

func NewErrNotAcceptedGatewayClass

func NewErrNotAcceptedGatewayClass(gatewayClass string, condition metav1.Condition) NotAcceptedGatewayClassError

NewErrNotAcceptedGatewayClass creates a new ErrNotAcceptedGatewayClass error.

func (NotAcceptedGatewayClassError) Error added in v2.2.0

Error returns the error message for the ErrNotAcceptedGatewayClass error.

type UnsupportedGatewayClassError added in v2.2.0

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

UnsupportedGatewayClassError is an error which indicates that a provided GatewayClass is not supported.

func NewErrUnsupportedGateway

func NewErrUnsupportedGateway(reason string) UnsupportedGatewayClassError

NewErrUnsupportedGateway creates a new ErrUnsupportedGatewayClass error.

func (UnsupportedGatewayClassError) Error added in v2.2.0

Error returns the error message for the ErrUnsupportedGatewayClass error.

Jump to

Keyboard shortcuts

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