healthcheck

package
v0.0.0-...-fcce140 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMissingMaxFails returned error when the ingress does not contains the
	// max-fails annotation
	ErrMissingMaxFails = errors.New("max-fails annotations is missing")

	// ErrMissingFailTimeout returned error when the ingress does not contains
	// the fail-timeout annotation
	ErrMissingFailTimeout = errors.New("fail-timeout annotations is missing")

	// ErrInvalidNumber returned
	ErrInvalidNumber = errors.New("the annotation does not contains a number")
)

Functions

This section is empty.

Types

type Upstream

type Upstream struct {
	MaxFails    int
	FailTimeout int
}

Upstream returns the URL and method to use check the status of the upstream server/s

func ParseAnnotations

func ParseAnnotations(cfg config.Configuration, ing *extensions.Ingress) *Upstream

ParseAnnotations parses the annotations contained in the ingress rule used to configure upstream check parameters

Jump to

Keyboard shortcuts

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