errors

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: May 1, 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

func IsInvalidContent

func IsInvalidContent(e error) bool

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

func IsLocationDenied

func IsLocationDenied(e error) bool

IsLocationDenied checks if the err is an error which indicates a location should return HTTP code 503

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

func NewInvalidAnnotationContent

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

NewInvalidAnnotationContent returns a new InvalidContent error

func NewLocationDenied

func NewLocationDenied(reason string) error

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

Jump to

Keyboard shortcuts

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