waiters

package
v0.194.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 4

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