Documentation
¶
Index ¶
- Constants
- Variables
- func CheckURL(rawURL string) error
- func CheckURLInternal(rawURL string) error
- func FetchURL(rawURL string) ([]byte, error)
- func FetchURLInternal(rawURL string) ([]byte, error)
- func FetchURLWithHeadersInternal(rawURL string, headers map[string]string) ([]byte, error)
- func RunMain(args []string, stdout, stderr io.Writer) int
- type FetchOptions
Constants ¶
View Source
const ( ServerNameEnv = "HEALTHCHECK_SERVER_NAME" CACertFileEnv = "HEALTHCHECK_CA_CERT_FILE" DefaultMaxBodyBytes int64 = 64 << 10 )
Variables ¶
View Source
var ( ErrBodyTooLarge = errors.New("healthprobe: response body exceeds limit") ErrHostNotAllowed = errors.New("healthprobe: host not in allowlist") ErrPrivateNetwork = errors.New("healthprobe: target resolves to a private or loopback address") ErrTooManyRedirects = errors.New("healthprobe: too many redirects") )
Functions ¶
func CheckURLInternal ¶
func FetchURLInternal ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.