Versions in this module Expand all Collapse all v1 v1.0.1 Sep 13, 2022 v1.0.0 Sep 12, 2022 Changes in this version + const DefaultAPIVersion + const DefaultAzureManagementURL + const DefaultOperationPollInterval + var DefaultUserAgent = userAgent() + var ErrOperationCancelled = errors.New("Polling for operation status cancelled") + func IsResourceNotFoundError(err error) bool + type AzureError struct + Code string + Message string + func (e AzureError) Error() string + type Client interface + GetOperationStatus func(operationID OperationID) (GetOperationStatusResponse, error) + SendAzureDeleteRequest func(url string) (OperationID, error) + SendAzureGetRequest func(url string) ([]byte, error) + SendAzurePostRequest func(url string, data []byte) (OperationID, error) + SendAzurePostRequestWithReturnedResponse func(url string, data []byte) ([]byte, error) + SendAzurePutRequest func(url, contentType string, data []byte) (OperationID, error) + WaitForOperation func(operationID OperationID, cancel chan struct{}) error + func ClientFromPublishSettingsData(settingsData []byte, subscriptionID string) (client Client, err error) + func ClientFromPublishSettingsDataWithConfig(data []byte, subscriptionID string, config ClientConfig) (client Client, err error) + func ClientFromPublishSettingsFile(filePath, subscriptionID string) (client Client, err error) + func ClientFromPublishSettingsFileWithConfig(filePath, subscriptionID string, config ClientConfig) (client Client, err error) + func NewAnonymousClient() Client + func NewClient(subscriptionID string, managementCert []byte) (Client, error) + func NewClientFromConfig(subscriptionID string, managementCert []byte, config ClientConfig) (Client, error) + type ClientConfig struct + APIVersion string + ManagementURL string + OperationPollInterval time.Duration + UserAgent string + func DefaultConfig() ClientConfig + type GetOperationStatusResponse struct + Error *AzureError + HTTPStatusCode string + ID string + Status OperationStatus + XMLName xml.Name + type OperationID string + type OperationStatus string + const OperationStatusFailed + const OperationStatusInProgress + const OperationStatusSucceeded