idgen

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package idgen provides ID generators for various cloud resource types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ARN

func ARN(partition, service, region, accountID, resource string) string

ARN generates an AWS ARN.

func AWSARN

func AWSARN(service, region, accountID, resource string) string

AWSARN generates an AWS ARN with the standard "aws" partition.

func AzureID

func AzureID(subscriptionID, resourceGroup, provider, resourceType, name string) string

AzureID generates an Azure resource ID.

func GCPID

func GCPID(project, resourceType, name string) string

GCPID generates a GCP resource self-link.

func GenerateID

func GenerateID(prefix string) string

GenerateID generates an ID with the given prefix (e.g., "i-", "vpc-", "sg-").

func Reset

func Reset()

Reset resets the counter (for testing).

Types

This section is empty.

Jump to

Keyboard shortcuts

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