desiredstate

package
v2.31.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitFor

func WaitFor(interval time.Duration, timeout time.Duration, predicate StateDefiner) (interface{}, error)

func WaitForWithRetries

func WaitForWithRetries(retries int64, interval time.Duration, timeout time.Duration, predicate StateDefiner) (interface{}, error)

WaitForWithRetries wait for a predicate to be true and limiting the retries by an explict count

Types

type StateDefiner

type StateDefiner interface {
	SetValue(interface{}) error
	Get() (interface{}, error)
	Check(interface{}) (bool, error)
}

Jump to

Keyboard shortcuts

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