Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthService ¶
func NewHealthService ¶
func NewHealthService() HealthService
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.
Click to show internal directories.
Click to hide internal directories.