Documentation
¶
Overview ¶
Package engine manages the CLI engine binaries that carry out run operations.
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() // ErrInvalidVersion is returned when a engine version string is // not a semantic version string (major.minor.patch). ErrInvalidVersion = errors.New("invalid engine version") )
View Source
var DefaultBinDir = path.Join(os.TempDir(), "otf-engine-bins")
Functions ¶
Types ¶
type Client ¶ added in v0.5.22
type Client interface {
// contains filtered or unexported methods
}
Client provides access to the engine's upstream services.
type Engine ¶
Engine represents a CLI capable of carrying out infrastructure as code operations, e.g. terraform.
func (*Engine) MarshalText ¶
func (*Engine) UnmarshalText ¶
type EngineService ¶ added in v0.5.18
type EngineService = Service
Alias service to permit embedding it with other services in a struct without a name clash.
type Service ¶ added in v0.3.21
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶ added in v0.3.21
type VersionChecker ¶ added in v0.5.22
type VersionChecker struct {
Logger logr.Logger
Client VersionCheckerClient
}
Click to show internal directories.
Click to hide internal directories.