engine

package
v0.3.20 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MinEngineVersion = "1.2.0"

MinEngineVersion specifies the minimum engine version accepted by OTF.

TODO: This originally applied only to terraform before tofu was added as an alternative engine. Tofu's earliest version is 1.6.0, which should really be the minimum version if tofu is the selected engine.

Variables

View Source
var (
	// Default is the default for setting the default engine.
	//
	// NOTE: the actual default engine that has been set by the user should be
	// retrieved via the daemon config.
	Default = Terraform
	// Terraform is the terraform engine
	Terraform = &Engine{engine: &terraform{}}
	// Tofu is the opentofu engine
	Tofu = &Engine{engine: &tofu{}}
	// ErrInvalidVersion is returned when a engine version string is
	// not a semantic version string (major.minor.patch).
	ErrInvalidVersion = errors.New("invalid engine version")
)

Functions

This section is empty.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func ListEngines

func ListEngines() []*Engine

func (*Engine) MarshalText

func (e *Engine) MarshalText() ([]byte, error)

func (*Engine) Scan

func (e *Engine) Scan(text any) error

func (*Engine) Set

func (e *Engine) Set(v string) error

func (*Engine) Type

func (*Engine) Type() string

func (*Engine) UnmarshalText

func (e *Engine) UnmarshalText(text []byte) error

func (*Engine) Value

func (e *Engine) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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