Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitForStateTransition ¶
func WaitForStateTransition(ctx context.Context, resourceType, resourceId string, stateChecker StateChecker) error
WaitForStateTransition waits for a resource to reach the desired state by polling its current state. It uses exponential backoff with a maximum interval to avoid overwhelming the API.
Types ¶
type StateChecker ¶
StateChecker is a function that checks if a resource is in the desired state. It should return true if the resource is in the desired state, false otherwise, and any error that occurred during the check.
Click to show internal directories.
Click to hide internal directories.