tfimpl

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package tfimpl defines the Terraform implementation type constants.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultRegistryDomain added in v1.0.5

func DefaultRegistryDomain(impl Type) string

DefaultRegistryDomain returns the registry host to use when a tfr:// source URL omits its host.

The TG_TF_DEFAULT_REGISTRY_HOST env var wins if set; otherwise the choice follows impl: OpenTofu → registry.opentofu.org, anything else → registry.terraform.io.

Types

type Type

type Type string

Type represents which Terraform implementation is being used.

const (
	// Terraform indicates the HashiCorp Terraform binary.
	Terraform Type = "terraform"
	// OpenTofu indicates the OpenTofu binary.
	OpenTofu Type = "tofu"
	// Unknown indicates an unrecognized implementation.
	Unknown Type = "unknown"
)

Jump to

Keyboard shortcuts

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