MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / normalizeType

Function normalizeType

internal/pulumi/mapper.go:30–35  ·  view source on GitHub ↗

normalizeType strips Azure version segments so versioned types match the unversioned entries in the metadata map.

(typ string)

Source from the content-addressed store, hash-verified

28// normalizeType strips Azure version segments so versioned types match the
29// unversioned entries in the metadata map.
30func normalizeType(typ string) string {
31 if strings.HasPrefix(typ, "azure-native:") {
32 return azureVersionRe.ReplaceAllString(typ, "")
33 }
34 return typ
35}
36
37// DecodeAllResources decodes collected Pulumi resources using the metadata-driven
38// mapping. It replaces the old per-resource decoder approach — no Go code changes

Callers 3

DecodeAllResourcesFunction · 0.85
decodeFromMappingFunction · 0.85
addDerivedAttrsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected