util

package
v0.0.0-...-5ee5d88 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertForItems

func AssertForItems[T any](
	items []T,
	fn func(g gomega.Gomega, t T),
)

Runs fn for each item in items and fails the test if any of the fn calls fail.

func FilterOutE2ETestObjects

func FilterOutE2ETestObjects[T metav1.Object](objs []T) (ret []T)

func NameList

func NameList[T metav1.Object](objs []T) (names []string)

func PollUntilForItems

func PollUntilForItems[T any](
	ctx context.Context,
	items []T,
	condFn func(T) (bool, error),
	interval time.Duration,
) ([]T, error)

PollUntilForItems polls each item in items with condFn until it returns true, an error, or until ctx is cancelled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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