Documentation ¶
Index ¶
- Variables
- func Race(ctx context.Context, timeout time.Duration, workers []Worker) error
- func UntilCondition(ctx context.Context, watchClient client.WithWatch, target types.NamespacedName, ...) error
- func UntilDelete(ctx context.Context, c client.Client, obj client.Object) error
- type ConditionFunc
- type Worker
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BackOffTime = 5 * time.Second
)
Functions ¶
func Race ¶
Race multiple worker functions each in a goroutine. The first worker to return commits the result of the Race function. All workers must return when the context is closed before the Race function will return.
func UntilCondition ¶
func UntilCondition(ctx context.Context, watchClient client.WithWatch, target types.NamespacedName, listType client.ObjectList, condition ConditionFunc) error
Types ¶
Click to show internal directories.
Click to hide internal directories.