Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingAnnotations the ingress rule does not contains annotations // This is an error only when annotations are being parsed ErrMissingAnnotations = errors.New("ingress rule without annotations") // ErrInvalidAnnotationName the ingress rule does contains an invalid // annotation name ErrInvalidAnnotationName = errors.New("invalid annotation name") // ErrInvalidAnnotationContent the ingress rule annotation content is // invalid ErrInvalidAnnotationContent = errors.New("invalid annotation content") )
Functions ¶
func IsInvalidContent ¶
IsInvalidContent checks if the err is an error which indicates an annotations value is not valid
func IsLocationDenied ¶
IsLocationDenied checks if the err is an error which indicates a location should return HTTP code 503
func IsMissingAnnotations ¶
IsMissingAnnotations checks if the err is an error which indicates the ingress does not contains annotations
func NewInvalidAnnotationContent ¶
NewInvalidAnnotationContent returns a new InvalidContent error
func NewLocationDenied ¶
NewLocationDenied returns a new LocationDenied error
Types ¶
type InvalidContent ¶
type InvalidContent struct {
Name string
}
InvalidContent error
func (InvalidContent) Error ¶
func (e InvalidContent) Error() string
type LocationDenied ¶
type LocationDenied struct {
Reason error
}
LocationDenied error
func (LocationDenied) Error ¶
func (e LocationDenied) Error() string
Click to show internal directories.
Click to hide internal directories.