healthcheck

package module
v0.0.0-...-6208b09 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

README

Healthcheck

Go Report Card Go Reference

Healthcheck implements startup, liveness, and readiness healthchecks for app containers.

[!NOTE]

This repository should be imported as code.cloudfoundry.org/healthcheck.

Docs

Contributing

See the Contributing.md for more information on how to contribute.

Working Group Charter

This repository is maintained by App Runtime Platform under Diego area.

[!IMPORTANT]

Content in this file is managed by the CI task sync-readme and is generated by CI following a convention.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheck

type HealthCheck struct {
	// contains filtered or unexported fields
}

func NewHealthCheck

func NewHealthCheck(network, uri, port string, timeout time.Duration) HealthCheck

func (*HealthCheck) CheckInterfaces

func (h *HealthCheck) CheckInterfaces(interfaces []net.Interface) error

func (*HealthCheck) HTTPHealthCheck

func (h *HealthCheck) HTTPHealthCheck(ip string) error

func (*HealthCheck) PortHealthCheck

func (h *HealthCheck) PortHealthCheck(ip string) error

type HealthCheckError

type HealthCheckError struct {
	Code    int
	Message string
}

func (HealthCheckError) Error

func (e HealthCheckError) Error() string

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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