Documentation ¶
Index ¶
- Variables
- func Errorf(format string, args ...interface{}) error
- func IsInvalidContent(e error) bool
- func IsLocationDenied(e error) bool
- func IsMissingAnnotations(e error) bool
- func New(m string) error
- func NewInvalidAnnotationContent(name string, val interface{}) error
- func NewLocationDenied(reason string) error
- type InvalidContent
- type LocationDenied
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingAnnotations the ingress rule does not contain 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") )
Functions ¶
func Errorf ¶
Errorf formats according to a format specifier and returns the string as a value that satisfies error.
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 contain 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.