Documentation
¶
Overview ¶
Terraform provider for Hyper-V. Entry point.
Real provider behavior lives under internal/provider. This file does only the minimum needed for `terraform init` to discover us: parse a -debug flag, then hand off to providerserver.Serve.
Directories
¶
| Path | Synopsis |
|---|---|
|
hack
|
|
|
bench-run
command
Maintainer-only WinRM script runner against the Hyper-V bench.
|
Maintainer-only WinRM script runner against the Hyper-V bench. |
|
krb5-probe
command
Maintainer-only diagnostic: exercises gokrb5's password-mode AS-REQ directly, with verbose error reporting, to disambiguate AD-vs-gokrb5 preauth issues from masterzen/winrm wrapping noise.
|
Maintainer-only diagnostic: exercises gokrb5's password-mode AS-REQ directly, with verbose error reporting, to disambiguate AD-vs-gokrb5 preauth issues from masterzen/winrm wrapping noise. |
|
ssh-probe
command
|
|
|
internal
|
|
|
acctest
Package acctest provides acceptance-test scaffolding shared across resource packages.
|
Package acctest provides acceptance-test scaffolding shared across resource packages. |
|
connection
Package connection defines the transport abstraction the typed Hyper-V client (internal/hyperv) uses to ship PowerShell scripts to a Windows host and read their results back.
|
Package connection defines the transport abstraction the typed Hyper-V client (internal/hyperv) uses to ship PowerShell scripts to a Windows host and read their results back. |
|
datasources/host
Package host implements the hyperv_host data source — read-only information about the Hyper-V host.
|
Package host implements the hyperv_host data source — read-only information about the Hyper-V host. |
|
datasources/iso_volume
Package iso_volume implements the data.hyperv_iso_volume data source.
|
Package iso_volume implements the data.hyperv_iso_volume data source. |
|
datasources/vm_state
Package vm_state implements the hyperv_vm_state data source -- read-only power-state plus IP-address lookup for an existing VM by name.
|
Package vm_state implements the hyperv_vm_state data source -- read-only power-state plus IP-address lookup for an existing VM by name. |
|
datasources/vswitch
Package vswitch implements the hyperv_virtual_switch data source -- read-only access to an existing switch by name.
|
Package vswitch implements the hyperv_virtual_switch data source -- read-only access to an existing switch by name. |
|
hyperv
Package hyperv is the typed Go wrapper over the connection layer.
|
Package hyperv is the typed Go wrapper over the connection layer. |
|
iso
Package iso synthesizes deterministic ISO9660 volumes on the runner for the data.hyperv_iso_volume data source.
|
Package iso synthesizes deterministic ISO9660 volumes on the runner for the data.hyperv_iso_volume data source. |
|
provider
Package provider implements the Hyper-V Terraform provider.
|
Package provider implements the Hyper-V Terraform provider. |
|
resources/image_file
Package image_file implements the hyperv_image_file resource.
|
Package image_file implements the hyperv_image_file resource. |
|
resources/nat_static_mapping
Package nat_static_mapping implements the hyperv_nat_static_mapping resource.
|
Package nat_static_mapping implements the hyperv_nat_static_mapping resource. |
|
resources/vhd
Package vhd implements the hyperv_vhd resource.
|
Package vhd implements the hyperv_vhd resource. |
|
resources/vm
Package vm implements the hyperv_vm resource (M4 minimal first slice).
|
Package vm implements the hyperv_vm resource (M4 minimal first slice). |
|
resources/vswitch
Package vswitch implements the hyperv_virtual_switch resource.
|
Package vswitch implements the hyperv_virtual_switch resource. |
|
scripts
Package scripts embeds the PowerShell scripts the provider runs against the host.
|
Package scripts embeds the PowerShell scripts the provider runs against the host. |
|
testutil
Package testutil provides shared test helpers — primarily a deterministic fake of connection.Runner that lets typed-client tests exercise the JSON contract without needing a real Hyper-V host or even a real pwsh binary.
|
Package testutil provides shared test helpers — primarily a deterministic fake of connection.Runner that lets typed-client tests exercise the JSON contract without needing a real Hyper-V host or even a real pwsh binary. |
|
typeflatten
Package typeflatten holds small helpers that translate the typed hyperv-client DTO shape into terraform-plugin-framework types.List / types.Object values.
|
Package typeflatten holds small helpers that translate the typed hyperv-client DTO shape into terraform-plugin-framework types.List / types.Object values. |
|
types/mac
Package mac provides a custom Terraform attribute type for MAC addresses used by the Hyper-V provider.
|
Package mac provides a custom Terraform attribute type for MAC addresses used by the Hyper-V provider. |
|
types/path
Package path provides a custom Terraform attribute type for Windows file paths used by the Hyper-V provider.
|
Package path provides a custom Terraform attribute type for Windows file paths used by the Hyper-V provider. |
Click to show internal directories.
Click to hide internal directories.