utils

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Region string

Functions

func ExtractId

func ExtractId(oldID string) string

Function to get the ID from the region + ID string

func IdStateUpgradeV0

func IdStateUpgradeV0(ctx context.Context, rawState map[string]interface{}, meta interface{}) (map[string]interface{}, error)

func SetRegionFromHostname

func SetRegionFromHostname(host string) error

func TransformIdWithRegion

func TransformIdWithRegion(oldID string) string

Helper function to prepend region to the ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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