package checks

import "github.com/docker/distribution/health/checks"

Index

Functions

func FileChecker

func FileChecker(f string) health.Checker

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

func TCPChecker(addr string, timeout time.Duration) health.Checker

TCPChecker attempts to open a TCP connection.

Source Files

checks.go

Version
v2.8.1+incompatible
Published
Mar 8, 2022
Platform
js/wasm
Imports
9 packages
Last checked
14 minutes ago

Tools for package owners.