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) (subscriptionID string, tc azcore.TokenCredential, err error)
- func MakeZoneID(resourceGroup, zoneName string) string
- func SplitZoneID(zoneid string) (string, string)
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) (subscriptionID string, tc azcore.TokenCredential, err 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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.