exec

package
v1.21.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 8 Imported by: 136

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prober added in v1.13.0

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

func New() Prober

New creates a Prober.

type TimeoutError added in v1.20.0

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 added in v1.20.0

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

NewTimeoutError returns a new TimeoutError.

func (*TimeoutError) Error added in v1.20.0

func (t *TimeoutError) Error() string

Error returns the error string.

func (*TimeoutError) Timeout added in v1.20.0

func (t *TimeoutError) Timeout() time.Duration

Timeout returns the timeout duration of the exec probe.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL