handlers

package
v0.50.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0, BSD-3-Clause Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Healthz

func Healthz(w http.ResponseWriter, r *http.Request)

Healthz is an HTTP handler for the /healthz endpoint which responds with 200 OK status code if the Machine Controller Manager is healthy; and with 500 Internal Server error status code otherwise.

func UpdateHealth

func UpdateHealth(isHealthy bool)

UpdateHealth expects a boolean value <isHealthy> and assigns it to the package-internal 'healthy' variable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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