import "istio.io/istio/pkg/istio-agent/health"
health_check.go health_probers.go
func (a AggregateProber) Probe(timeout time.Duration) (ProbeResult, error)
func (a EnvoyProber) Probe(time.Duration) (ProbeResult, error)
type ExecProber struct { Config *v1alpha3.ExecHealthCheckConfig }
func (e *ExecProber) Probe(timeout time.Duration) (ProbeResult, error)
type HTTPProber struct { Config *v1alpha3.HTTPHealthCheckConfig Transport *http.Transport }
func NewHTTPProber(cfg *v1alpha3.HTTPHealthCheckConfig) *HTTPProber
func (h *HTTPProber) Probe(timeout time.Duration) (ProbeResult, error)
HttpProber_Probe will return whether or not the target is healthy (true -> healthy)
by making an HTTP Get response.
const ( Healthy ProbeResult = "HEALTHY" Unhealthy ProbeResult = "UNHEALTHY" Unknown ProbeResult = "UNKNOWN" )
func (p *ProbeResult) IsHealthy() bool
type Prober interface { // Probe will healthcheck and return whether or not the target is healthy. // If an error returned is not nil, it is assumed that the process could // not complete, and Probe() was unable to determine whether or not the // target was healthy. Probe(timeout time.Duration) (ProbeResult, error) }
type TCPProber struct { Config *v1alpha3.TCPHealthCheckConfig }
type WorkloadHealthChecker struct {
// contains filtered or unexported fields
}
func NewWorkloadHealthChecker(cfg *v1alpha3.ReadinessProbe, envoyProbe ready.Prober) *WorkloadHealthChecker
func (w *WorkloadHealthChecker) PerformApplicationHealthCheck(callback func(*ProbeEvent), quit chan struct{})
PerformApplicationHealthCheck Performs the application-provided configuration health check. Instead of a heartbeat-based health checks, we only send on a health state change, and this is determined by the success & failure threshold provided by the user.
Package health imports 15 packages (graph) and is imported by 2 packages. Updated 2021-01-27. Refresh now. Tools for package owners.