Documentation ¶
Index ¶
- Variables
- func Errorf(format string, args ...interface{}) error
- func IsInvalidContent(e error) bool
- func IsMissingAnnotations(e error) bool
- func New(m string) error
- func NewInvalidAnnotationContent(name string, val interface{}) error
- func NewInvalidAnnotationContentReason(reason string) error
- type InvalidContent
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 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 NewInvalidAnnotationContentReason ¶
NewInvalidAnnotationContentReason returns a new InvalidContent error
Types ¶
type InvalidContent ¶
type InvalidContent struct {
Name string
}
InvalidContent error
func (InvalidContent) Error ¶
func (e InvalidContent) Error() string
Click to show internal directories.
Click to hide internal directories.