kubernetes: k8s.io/kubernetes/pkg/probe/exec Index | Files

package exec

import "k8s.io/kubernetes/pkg/probe/exec"

Index

Package Files

errors.go exec.go

type Prober Uses

type Prober interface {
    Probe(e exec.Cmd) (probe.Result, string, error)
}

Prober is an interface defining the Probe object for container readiness/liveness checks.

func New Uses

func New() Prober

New creates a Prober.

type TimeoutError Uses

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 Uses

func NewTimeoutError(err error, timeout time.Duration) *TimeoutError

NewTimeoutError returns a new TimeoutError.

func (*TimeoutError) Error Uses

func (t *TimeoutError) Error() string

Error returns the error string.

func (*TimeoutError) Timeout Uses

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.