Help us shape the future of Go! Take the 2026 Go Developer Survey

typeflatten

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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