Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ZonalAllocationFailedAzErrorCode is an Azure error code indicating that there is insufficient capacity in the target zone. ZonalAllocationFailedAzErrorCode = "ZonalAllocationFailed" // CorrelationRequestIDAzHeaderKey is the Azure API response header key whose value is a request correlation ID. CorrelationRequestIDAzHeaderKey = "x-ms-correlation-request-id" // RequestIDAzHeaderKey is the Azure API response header key whose value is the request ID. RequestIDAzHeaderKey = "x-ms-request-id" // ErrorCodeAzHeaderKey is the Azure API response header key whose value is the underline error code as set by the server. ErrorCodeAzHeaderKey = "x-ms-error-code" // ClientRequestIDAzHeaderKey is the Azure API response header key whose value is the client request ID. ClientRequestIDAzHeaderKey = "x-ms-client-request-id" )
Variables ¶
This section is empty.
Functions ¶
func GetMatchingErrorCode ¶
GetMatchingErrorCode gets a matching codes.Code for the given azure error code.
func IsNotFoundAzAPIError ¶
IsNotFoundAzAPIError checks if error is an AZ API error and if it is a 404 response code.
func LogAzAPIError ¶
LogAzAPIError collects additional information from AZ response and logs it as part of the error log message.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.