utils

package
v0.20.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

func DropZoneName(dnsName, zoneName string) (string, bool)

DropZoneName shortens DnsEntry-dnsName from record name + .DNSZone to record name only: e.g www2.test6227.ml to www2

func ExtractResourceGroup

func ExtractResourceGroup(id string) (string, error)

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

func MakeZoneID(resourceGroup, zoneName string) string

MakeZoneID creates zone ID from resource group and name

func SplitZoneID

func SplitZoneID(zoneid string) (string, string)

SplitZoneID returns resource group and name for a zoneid

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL