Documentation
¶
Overview ¶
Package typeflatten holds small helpers that translate typed hyperv-client DTOs into terraform-plugin-framework types.List / types.Object values. It lives in its own package so both the vm resource and the vm_state data source can share one implementation without either depending on the other's package. Functions here stay free of resource-layer concerns (no plan-modifier knowledge, no schema awareness).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IPAddresses ¶
func IPAddresses(nics []hyperv.NetworkAdapter) types.List
IPAddresses unions the per-NIC IPAddresses arrays from Get-VMNetworkAdapter into a single flat types.List of strings, preserving cmdlet order rather than re-sorting so downstream consumers keying off `ip_addresses[0]` still see real drift. Returns a known empty list, not null, since the schema's ListAttribute decode requires a known value.
Types ¶
This section is empty.