waiter

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrRequestTimeout is an error returned when the Wait method timeouts.
	ErrRequestTimeout = wait.ErrWaitTimeout
)

Functions

This section is empty.

Types

type Waiter

type Waiter interface {
	// Wait runs a new thread for at least `timeout` duration, repeated by every `frequency` cycles.
	Wait(timeout time.Duration, frequency time.Duration) error
}

Waiter is used to wait for kubernetes nodes and pods to be in a certain state.

func NewWaitRequest

func NewWaitRequest(job func() (bool, error)) Waiter

NewWaitRequest creates a new Waiter implementation.

Jump to

Keyboard shortcuts

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