package checks
import "github.com/docker/distribution/health/checks"
Index ¶
- func FileChecker(f string) health.Checker
- func HTTPChecker(r string, statusCode int, timeout time.Duration, headers http.Header) health.Checker
- func TCPChecker(addr string, timeout time.Duration) health.Checker
Functions ¶
func FileChecker ¶
FileChecker checks the existence of a file and returns an error if the file exists.
func HTTPChecker ¶
func HTTPChecker(r string, statusCode int, timeout time.Duration, headers http.Header) health.Checker
HTTPChecker does a HEAD request and verifies that the HTTP status code returned matches statusCode.
func TCPChecker ¶
TCPChecker attempts to open a TCP connection.
Source Files ¶
- Version
- v2.2.1+incompatible
- Published
- Dec 9, 2015
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 4 seconds ago –
Tools for package owners.