waiters

package
v0.201.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeAcceptors

func MakeAcceptors(statusPath string, successStatus interface{}, failureStates []string, extraAcceptors ...request.WaiterAcceptor) []request.WaiterAcceptor

MakeAcceptors constructs a slice of request acceptors

func MakeErrorCodeAcceptors

func MakeErrorCodeAcceptors(errorCode string) []request.WaiterAcceptor

MakeAcceptors constructs a slice of request acceptors for error codes

func Wait

func Wait(name, msg string, acceptors []request.WaiterAcceptor, newRequest func() *request.Request, waitTimeout time.Duration, troubleshoot func(string) error) error

Wait for something with a name to reach status that is expressed by acceptors using newRequest until we hit waitTimeout, on unexpected status troubleshoot will be called with the desired status as an argument, so that it can find what might have gone wrong

Types

This section is empty.

Jump to

Keyboard shortcuts

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