Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.
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.
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.
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
func (e NotAcceptedGatewayClassError) Error() string
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
func (e UnsupportedGatewayClassError) Error() string
Error returns the error message for the ErrUnsupportedGatewayClass error.