distribution/registry/handlers
Aaron Lehmann b09b0ffcf9 Add configurable file-existence and HTTP health checks
Add a section to the config file called "health". Within this section,
"filecheckers" and "httpcheckers" list checks to run. Each check
specifies a file or URI, a time interval for the check, and a threshold
specifying how many times the check must fail to reach an unhealthy
state.

Document the new options in docs/configuration.md.

Add unit testing for both types of checkers. Add an UnregisterAll
function in the health package to support the unit tests, and an
Unregister function for consistency with Register.

Fix a string conversion problem in the health package's HTTP checker.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-08-20 14:50:12 -07:00
..
api_test.go Add a unit test which verifies the ResponseWriter endpoints see implements CloseNotifier 2015-08-19 11:37:53 -07:00
app.go Add configurable file-existence and HTTP health checks 2015-08-20 14:50:12 -07:00
app_test.go Functional options for NewRegistryWithDriver 2015-08-19 11:06:30 -07:00
basicauth.go Move registry package into handler package 2015-02-10 17:25:40 -08:00
basicauth_prego14.go Move registry package into handler package 2015-02-10 17:25:40 -08:00
blob.go Change some incorrect error types in proxy stores from API errors to 2015-08-11 14:16:24 -07:00
blobupload.go Change some incorrect error types in proxy stores from API errors to 2015-08-11 14:16:24 -07:00
catalog.go Create Repositories method 2015-07-21 21:45:14 -07:00
context.go Create Repositories method 2015-07-21 21:45:14 -07:00
health_test.go Add configurable file-existence and HTTP health checks 2015-08-20 14:50:12 -07:00
helpers.go Fix CloseNotifier handling and avoid "the ResponseWriter does not implement CloseNotifier" warnings in logs 2015-08-18 17:28:51 -07:00
hmac.go Refactor Blob Service API 2015-05-15 17:05:18 -07:00
hmac_test.go Refactor Blob Service API 2015-05-15 17:05:18 -07:00
hooks.go Feature: Web Panic Reporting via hooks 2015-05-31 14:21:22 +00:00
images.go Change some incorrect error types in proxy stores from API errors to 2015-08-11 14:16:24 -07:00
mail.go Feature: Web Panic Reporting via hooks 2015-05-31 14:21:22 +00:00
tags.go Allow Manifest Service to be configured with function arguments 2015-07-15 12:25:16 -07:00