errors

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

func Errorf(format string, args ...interface{}) error

Errorf formats according to a format specifier and returns the string as a value that satisfies error.

func IsInvalidContent

func IsInvalidContent(e error) bool

IsInvalidContent checks if the err is an error which indicates an annotations value is not valid

func IsMissingAnnotations

func IsMissingAnnotations(e error) bool

IsMissingAnnotations checks if the err is an error which indicates the ingress does not contain annotations

func New

func New(m string) error

New returns a new error

func NewInvalidAnnotationContent

func NewInvalidAnnotationContent(name string, val interface{}) error

NewInvalidAnnotationContent returns a new InvalidContent error

func NewInvalidAnnotationContentReason

func NewInvalidAnnotationContentReason(reason string) error

NewInvalidAnnotationContentReason returns a new InvalidContent error

Types

type InvalidContent

type InvalidContent struct {
	Name string
}

InvalidContent error

func (InvalidContent) Error

func (e InvalidContent) Error() string

Jump to

Keyboard shortcuts

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