wait

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright 2024 Nutanix. All rights reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForObject

func ForObject[T client.Object](
	ctx context.Context,
	input ForObjectInput[T],
) error

Types

type CheckFailedError

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

CheckFailedError is used to determine whether the wait failed because wraps an error returned by a failed check.

func (*CheckFailedError) Error

func (e *CheckFailedError) Error() string

func (*CheckFailedError) Is

func (e *CheckFailedError) Is(target error) bool

func (*CheckFailedError) Unwrap

func (e *CheckFailedError) Unwrap() error

type ForObjectInput

type ForObjectInput[T client.Object] struct {
	Reader   client.Reader
	Target   T
	Check    func(ctx context.Context, obj T) (bool, error)
	Interval time.Duration
	Timeout  time.Duration
}

Jump to

Keyboard shortcuts

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