package
Version:
v1.6.2
Opens a new window with list of versions in this module.
Published: May 14, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package idgen provides ID generators for various cloud resource types.
-
func ARN(partition, service, region, accountID, resource string) string
-
func AWSARN(service, region, accountID, resource string) string
-
func AzureID(subscriptionID, resourceGroup, provider, resourceType, name string) string
-
func GCPID(project, resourceType, name string) string
-
func GenerateID(prefix string) string
-
func Reset()
func ARN(partition, service, region, accountID, resource string) string
ARN generates an AWS ARN.
func AWSARN(service, region, accountID, resource string) string
AWSARN generates an AWS ARN with the standard "aws" partition.
func AzureID(subscriptionID, resourceGroup, provider, resourceType, name string) string
AzureID generates an Azure resource ID.
GCPID generates a GCP resource self-link.
GenerateID generates an ID with the given prefix (e.g., "i-", "vpc-", "sg-").
Reset resets the counter (for testing).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.