util

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Retry

func Retry(interval, timeout time.Duration, condFunc wait.ConditionFunc) error

Retry is different from wait.Poll because it does not stop retrying when error is encountered

func Retry2 added in v0.62.0

func Retry2(interval, timeout time.Duration, shouldRetryFunc func(error) bool, performFunc func() error) error

Retry is different from wait.Poll because it does not stop retrying when error is encountered

Types

type Throttle added in v0.12.0

type Throttle struct {
	// contains filtered or unexported fields
}

func NewThrottle added in v0.12.0

func NewThrottle(max int) Throttle

func (Throttle) Done added in v0.12.0

func (t Throttle) Done()

func (Throttle) Take added in v0.12.0

func (t Throttle) Take()

Jump to

Keyboard shortcuts

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