Documentation
¶
Overview ¶
Package azure provides utility functions for interacting with Azure resources and the Azure SDK.
Index ¶
- func GetResourceGroupFromID(resourceID string) string
- func GetResourceGroupIDFromName(subID string, resourceGroupName string) string
- func GetResourceNameFromID(resourceID string) string
- func GetStringPtrValue(s *string) string
- func GetVNetIDFromVNetName(ctx context.Context, cfg config.AzureConfig, resourceGroupName string, ...) (string, error)
- func GetVNetNameFromID(resourceID string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResourceGroupFromID ¶
GetResourceGroupFromID returns the resource group name from a given resource ID.
func GetResourceGroupIDFromName ¶
GetResourceGroupIDFromName creates the resource group ID from a given subscription ID and resource group name.
func GetResourceNameFromID ¶
GetResourceNameFromID returns the resource name from a given resource ID.
func GetStringPtrValue ¶ added in v0.0.3
GetStringPtrValue safely returns the value of a string pointer or an empty string if it's nil
func GetVNetIDFromVNetName ¶
func GetVNetIDFromVNetName(ctx context.Context, cfg config.AzureConfig, resourceGroupName string, vnetName string) (string, error)
GetVNetIDFromVNetName returns the VNet ID from a given resource group name and VNet name.
func GetVNetNameFromID ¶
GetVNetNameFromID returns the VNet name from a given resource ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.