Documentation
¶
Index ¶
- func CreateEnvVarsForAzureManagedIdentity(azureCredentialsName string) []corev1.EnvVar
- func CreateVolumeForAzureSecretStoreProviderClass(secretStoreVolumeName, secretProviderClassName string) corev1.Volume
- func CreateVolumeMountForAzureSecretStoreProviderClass(secretStoreVolumeName string) corev1.VolumeMount
- func CreateVolumeMountForKMSAzureSecretStoreProviderClass(secretStoreVolumeName string) corev1.VolumeMount
- func GetKeyVaultAuthorizedUser() string
- func GetKeyVaultDNSSuffixFromCloudType(cloud string) (string, error)
- func GetNameAndResourceGroupFromNetworkSecurityGroupID(nsgID string) (string, string, error)
- func GetNetworkSecurityGroupInfo(ctx context.Context, nsgID string, subscriptionID string, ...) (armnetwork.SecurityGroupsClientGetResponse, error)
- func GetResourceGroupInfo(ctx context.Context, rgName string, subscriptionID string, ...) (armresources.ResourceGroupsClientGetResponse, error)
- func GetServicePrincipalScopes(subscriptionID, managedResourceGroupName, nsgResourceGroupName, ... string, ...) (string, []string)
- func GetSubnetNameFromSubnetID(subnetID string) (string, error)
- func GetVnetInfoFromVnetID(ctx context.Context, vnetID string, subscriptionID string, ...) (armnetwork.VirtualNetworksClientGetResponse, error)
- func GetVnetNameAndResourceGroupFromVnetID(vnetID string) (string, string, error)
- func IsAroHCP() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEnvVarsForAzureManagedIdentity ¶ added in v0.1.52
func CreateVolumeForAzureSecretStoreProviderClass ¶ added in v0.1.52
func CreateVolumeMountForAzureSecretStoreProviderClass ¶ added in v0.1.52
func CreateVolumeMountForAzureSecretStoreProviderClass(secretStoreVolumeName string) corev1.VolumeMount
func CreateVolumeMountForKMSAzureSecretStoreProviderClass ¶ added in v0.1.58
func CreateVolumeMountForKMSAzureSecretStoreProviderClass(secretStoreVolumeName string) corev1.VolumeMount
func GetKeyVaultAuthorizedUser ¶ added in v0.1.50
func GetKeyVaultAuthorizedUser() string
func GetKeyVaultDNSSuffixFromCloudType ¶ added in v0.1.58
GetKeyVaultDNSSuffixFromCloudType simply mimics the functionality in environments.go from the Azure SDK, github.com/Azure/go-autorest. This function is used to get the DNS suffix for the Key Vault based on the cloud type.
func GetNameAndResourceGroupFromNetworkSecurityGroupID ¶
GetNameAndResourceGroupFromNetworkSecurityGroupID extracts the network security group (nsg) name and its resourrce group name from a nsg ID Example nsg ID: /subscriptions/<subscriptionID>/resourceGroups/<resourceGroupName>/providers/Microsoft.Network/networkSecurityGroups/<nsgName>
func GetNetworkSecurityGroupInfo ¶ added in v0.1.53
func GetNetworkSecurityGroupInfo(ctx context.Context, nsgID string, subscriptionID string, azureCreds azcore.TokenCredential) (armnetwork.SecurityGroupsClientGetResponse, error)
GetNetworkSecurityGroupInfo gets the full information on a network security group based on its ID
func GetResourceGroupInfo ¶ added in v0.1.53
func GetResourceGroupInfo(ctx context.Context, rgName string, subscriptionID string, azureCreds azcore.TokenCredential) (armresources.ResourceGroupsClientGetResponse, error)
GetResourceGroupInfo gets the full information on a resource group based on its name
func GetServicePrincipalScopes ¶ added in v0.1.58
func GetSubnetNameFromSubnetID ¶
GetSubnetNameFromSubnetID extracts the subnet name from a subnet ID Example subnet ID: /subscriptions/<subscriptionID>/resourceGroups/<resourceGroupName>/providers/Microsoft.Network/virtualNetworks/<vnetName>/subnets/<subnetName>
func GetVnetInfoFromVnetID ¶
func GetVnetInfoFromVnetID(ctx context.Context, vnetID string, subscriptionID string, azureCreds azcore.TokenCredential) (armnetwork.VirtualNetworksClientGetResponse, error)
GetVnetInfoFromVnetID extracts the full information on a VNET from a VNET ID by first getting the VNET name and its resource group's name and then using those parameters to query the full information on the VNET using Azure's SDK
func GetVnetNameAndResourceGroupFromVnetID ¶
GetVnetNameAndResourceGroupFromVnetID extracts the VNET name and its resource group from a VNET ID Example VNET ID: /subscriptions/<subscriptionID>/resourceGroups/<resourceGroupName>/providers/Microsoft.Network/virtualNetworks/<vnetName>
Types ¶
This section is empty.