normalizeType strips Azure version segments so versioned types match the unversioned entries in the metadata map.
(typ string)
| 28 | // normalizeType strips Azure version segments so versioned types match the |
| 29 | // unversioned entries in the metadata map. |
| 30 | func 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 |
no outgoing calls
no test coverage detected