probe

package
v0.0.0-...-d3ccc4f Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LivenessProbe

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

LivenessProbe wraps a liveness probe handler.

func (*LivenessProbe) LivenessHandler

func (p *LivenessProbe) LivenessHandler(w http.ResponseWriter, r *http.Request)

LivenessHandler writes back the HTTP status code 200 if the operator is ready, and 500 otherwise.

func (*LivenessProbe) Lock

func (p *LivenessProbe) Lock()

Lock the probe, preventing the LivenessHandler from responding to requests.

func (*LivenessProbe) Unlock

func (p *LivenessProbe) Unlock()

Unlock the probe, allowing the LivenessHandler to respond to requests.

type ReadyProbe

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

ReadyProbe wraps a readiness probe handler.

func (*ReadyProbe) IsReady

func (p *ReadyProbe) IsReady() bool

IsReady returns true when the given probe has been marked ready.

func (*ReadyProbe) ReadyHandler

func (p *ReadyProbe) ReadyHandler(w http.ResponseWriter, r *http.Request)

ReadyHandler writes back the HTTP status code 200 if the operator is ready, and 500 otherwise.

func (*ReadyProbe) SetReady

func (p *ReadyProbe) SetReady()

SetReady marks the probe as ready.

Jump to

Keyboard shortcuts

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