import "k8s.io/kubernetes/pkg/probe/exec"
Prober is an interface defining the Probe object for container readiness/liveness checks.
New creates a Prober.
type TimeoutError struct {
// contains filtered or unexported fields
}
TimeoutError is an error returned on exec probe timeouts. It should be returned by CRI implementations in order for the exec prober to interpret exec timeouts as failed probes. TODO: this error type can likely be removed when we support CRI errors.
func NewTimeoutError(err error, timeout time.Duration) *TimeoutError
NewTimeoutError returns a new TimeoutError.
func (t *TimeoutError) Error() string
Error returns the error string.
func (t *TimeoutError) Timeout() time.Duration
Timeout returns the timeout duration of the exec probe.
Package exec imports 8 packages (graph) and is imported by 175 packages. Updated 2020-11-24. Refresh now. Tools for package owners.