Documentation
¶
Index ¶
- Constants
- Variables
- func DecodeID(tk string) (string, string, error)
- func Failed(s string) bool
- func GetProvisioningState(resp *azcore.Response) (string, error)
- func GetStatus(resp *azcore.Response) (string, error)
- func IsTerminalState(s string) bool
- func IsValidURL(s string) bool
- func MakeID(pollerID string, kind string) string
Constants ¶
View Source
const ( HeaderAzureAsync = "Azure-AsyncOperation" HeaderLocation = "Location" )
View Source
const ( StatusSucceeded = "Succeeded" StatusCanceled = "Canceled" StatusFailed = "Failed" StatusInProgress = "InProgress" )
Variables ¶
View Source
var ErrNoBody = errors.New("the response did not contain a body")
ErrNoBody is returned if the response didn't contain a body.
Functions ¶
func GetProvisioningState ¶
GetProvisioningState returns the LRO's state from the response body. If there is no state in the response body the empty string is returned.
func GetStatus ¶
GetStatus returns the LRO's status from the response body. Typically used for Azure-AsyncOperation flows. If there is no status in the response body the empty string is returned.
func IsTerminalState ¶
IsTerminalState returns true if the LRO's state is terminal.
func IsValidURL ¶
IsValidURL verifies that the URL is valid and absolute.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.