package healthz
import "k8s.io/kubernetes/pkg/healthz"
Package healthz implements basic http server health checking. Usage:
import _ "healthz" registers a handler on the path '/healthz', that serves 200s
Index ¶
- func DefaultHealthz(checks ...HealthzChecker)
- func InstallHandler(mux mux, checks ...HealthzChecker)
- type HealthzChecker
Functions ¶
func DefaultHealthz ¶
func DefaultHealthz(checks ...HealthzChecker)
DefaultHealthz installs the default healthz check to the http.DefaultServeMux.
func InstallHandler ¶
func InstallHandler(mux mux, checks ...HealthzChecker)
InstallHandler registers a handler for health checking on the path "/healthz" to mux.
Types ¶
type HealthzChecker ¶
HealthzChecker is a named healthz check.
var PingHealthz HealthzChecker = ping{}
PingHealthz returns true automatically when checked
func NamedCheck ¶
func NamedCheck(name string, check func(r *http.Request) error) HealthzChecker
NamedCheck returns a health checker for the given name and function.
Source Files ¶
doc.go healthz.go
- Version
- v0.16.2
- Published
- May 4, 2015
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 33 seconds ago –
Tools for package owners.