desiredstate

package
v2.46.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 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