Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteAsyncOperation ¶
func ExecuteAsyncOperation(client management.Client, asyncOperation func() (management.OperationID, error), extraRules ...RetryRule) error
ExecuteAsyncOperation blocks until the provided asyncOperation is no longer in the InProgress state. Any known retryiable transient errors are retried and additional retry rules can be specified. If the operation was successful, nothing is returned, otherwise an error is returned.
func ExecuteOperation ¶
ExecuteOperation calls the provided syncOperation. Any known retryiable transient errors are retried and additional retry rules can be specified. If the operation was successful, nothing is returned, otherwise an error is returned.
Types ¶
type RetryRule ¶
type RetryRule func(management.AzureError) (bool, time.Duration)
RetryRule is a func (possibly with internal state to count retries) that determines if an AzureError should result in a retry and if so, what the back-off duration should be.