azure

package
v0.0.10 Latest Latest
Warning

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

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

Documentation

Overview

Package azure provides utility functions for interacting with Azure resources and the Azure SDK.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourceGroupFromID

func GetResourceGroupFromID(resourceID string) string

GetResourceGroupFromID returns the resource group name from a given resource ID.

func GetResourceGroupIDFromName

func GetResourceGroupIDFromName(subID string, resourceGroupName string) string

GetResourceGroupIDFromName creates the resource group ID from a given subscription ID and resource group name.

func GetResourceNameFromID

func GetResourceNameFromID(resourceID string) string

GetResourceNameFromID returns the resource name from a given resource ID.

func GetStringPtrValue added in v0.0.3

func GetStringPtrValue(s *string) string

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

func GetVNetNameFromID(resourceID string) string

GetVNetNameFromID returns the VNet name from a given resource ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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