utils

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 GetSubscriptionIDAndAuthorizer

func GetSubscriptionIDAndAuthorizer(c *provider.DNSHandlerConfig) (subscriptionID string, authorizer autorest.Authorizer, err error)

GetSubscriptionIDAndAuthorizer 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