kubernetes

package
v0.0.0-...-78a1898 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPProbe

type HTTPProbe struct {
	// contains filtered or unexported fields
}

HTTPProbe implements the ComponentInterface and provides a component which will handle web request to standard kubernetes probes: liveness, readiness and startup probes.

func NewHTTPProbe

func NewHTTPProbe(readinessChecker ReadinessChecker, port string) HTTPProbe

func (HTTPProbe) Run

func (p HTTPProbe) Run() (stop func(), wait func() error, err error)

type ReadinessChecker

type ReadinessChecker func() bool

ReadinessChecker is dependency which is used by HTTPProbe struct to check that application is ready to serve.

Jump to

Keyboard shortcuts

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