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.
Click to show internal directories.
Click to hide internal directories.