Documentation
¶
Index ¶
- Constants
- func DropZoneName(dnsName, zoneName string) (string, bool)
- func ExtractResourceGroup(id string) (string, error)
- func GetDefaultAzureClientOpts(c *provider.DNSHandlerConfig) (*arm.ClientOptions, error)
- func GetSubscriptionIDAndCredentials(c *provider.DNSHandlerConfig) (string, azcore.TokenCredential, error)
- func MakeZoneID(resourceGroup, zoneName string) string
- func SplitZoneID(zoneid string) (string, string)
- func StableError(err error) error
Constants ¶
View Source
const ( // DefaultMaxRetries is the default value for max retries on retryable operations. DefaultMaxRetries = 3 // DefaultMaxRetryDelay is the default maximum value for delay on retryable operations. DefaultMaxRetryDelay = math.MaxInt64 // DefaultRetryDelay is the default value for the initial delay on retry for retryable operations. DefaultRetryDelay = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func DropZoneName ¶
DropZoneName shortens DnsEntry-dnsName from record name + .DNSZone to record name only: e.g www2.test6227.ml to www2
func ExtractResourceGroup ¶
func GetDefaultAzureClientOpts ¶ added in v0.20.0
func GetDefaultAzureClientOpts(c *provider.DNSHandlerConfig) (*arm.ClientOptions, error)
func GetSubscriptionIDAndCredentials ¶ added in v0.20.0
func GetSubscriptionIDAndCredentials(c *provider.DNSHandlerConfig) (string, azcore.TokenCredential, error)
GetSubscriptionIDAndCredentials extracts credentials from config
func MakeZoneID ¶
MakeZoneID creates zone ID from resource group and name
func SplitZoneID ¶
SplitZoneID returns resource group and name for a zoneid
func StableError ¶ added in v0.36.0
StableError converts an Azure SDK error into a stable error message without correlation ID and timestamps to avoid endless status update/reconcile loop.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.