Versions in this module Expand all Collapse all v0 v0.4.2 Oct 29, 2014 v0.4.1 Oct 17, 2014 Changes in this version + func AddHealthChecker(checker HealthChecker) + func IsExitError(err error) bool + type CommandRunner interface + RunInContainer func(podFullName, uuid, containerName string, cmd []string) ([]byte, error) + type ExecHealthChecker struct + func (e *ExecHealthChecker) CanCheck(probe *api.LivenessProbe) bool + func (e *ExecHealthChecker) HealthCheck(podFullName, podUUID string, currentState api.PodState, ...) (Status, error) + type HTTPGetInterface interface + Get func(url string) (*http.Response, error) + type HTTPHealthChecker struct + func (h *HTTPHealthChecker) CanCheck(probe *api.LivenessProbe) bool + func (h *HTTPHealthChecker) HealthCheck(podFullName, podUUID string, currentState api.PodState, ...) (Status, error) + type HealthChecker interface + CanCheck func(probe *api.LivenessProbe) bool + HealthCheck func(podFullName, podUUID string, currentState api.PodState, ...) (Status, error) + func NewExecHealthChecker(runner CommandRunner) HealthChecker + func NewHTTPHealthChecker(client *http.Client) HealthChecker + func NewHealthChecker() HealthChecker + type Status int + const Healthy + const Unhealthy + const Unknown + func DoHTTPCheck(url string, client HTTPGetInterface) (Status, error) + func DoTCPCheck(addr string) (Status, error) + func (s Status) String() string + type TCPHealthChecker struct + func (t *TCPHealthChecker) CanCheck(probe *api.LivenessProbe) bool + func (t *TCPHealthChecker) HealthCheck(podFullName, podUUID string, currentState api.PodState, ...) (Status, error)