Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPProbe ¶ added in v0.8.0
func HTTPProbe(config HTTPProbeConfigOptions) error
HTTPProbe checks that HTTP connection can be established to the address.
func ProbeHandler ¶ added in v0.19.0
func ProbeHandler(prober func() bool, tracingEnabled bool) http.HandlerFunc
ProbeHandler returns a http.HandlerFunc that responds to health checks. This handler assumes the Knative Probe Header will be passed.
Types ¶
type HTTPProbeConfigOptions ¶ added in v0.8.0
type HTTPProbeConfigOptions struct {
Timeout time.Duration
*corev1.HTTPGetAction
KubeMajor string
KubeMinor string
MaxProtoMajor int
}
HTTPProbeConfigOptions holds the HTTP probe config options
type TCPProbeConfigOptions ¶ added in v0.8.0
type TCPProbeConfigOptions struct {
SocketTimeout time.Duration
Address string
}
TCPProbeConfigOptions holds the TCP probe config options
Click to show internal directories.
Click to hide internal directories.