Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TerraformVersion is the version of Terraform used internally // when Terraform is not available on the system. // NOTE: Keep this in sync with the version in scripts/Dockerfile.base. TerraformVersion = version.Must(version.NewVersion("1.4.6")) )
Functions ¶
func FormatDiagnostic ¶ added in v0.20.0
func FormatDiagnostic(diag *tfjson.Diagnostic) string
Types ¶
type ServeOptions ¶
type ServeOptions struct {
*provisionersdk.ServeOptions
// BinaryPath specifies the "terraform" binary to use.
// If omitted, the $PATH will attempt to find it.
BinaryPath string
// CachePath must not be used by multiple processes at once.
CachePath string
Logger slog.Logger
Tracer trace.Tracer
// ExitTimeout defines how long we will wait for a running Terraform
// command to exit (cleanly) if the provision was stopped. This
// happens when the provision is canceled via RPC and when the command is
// still running after the provision stream is closed.
//
// This is a no-op on Windows where the process can't be interrupted.
//
// Default value: 3 minutes (unhanger.HungJobExitTimeout). This value should
// be kept less than the value that Coder uses to mark hung jobs as failed,
// which is 5 minutes (see unhanger package).
ExitTimeout time.Duration
}
type State ¶ added in v0.18.0
type State struct {
Resources []*proto.Resource
Parameters []*proto.RichParameter
GitAuthProviders []string
}
func ConvertState ¶ added in v0.18.0
func ConvertState(modules []*tfjson.StateModule, rawGraph string) (*State, error)
ConvertState consumes Terraform state and a GraphViz representation produced by `terraform graph` to produce resources consumable by Coder. nolint:gocyclo
Click to show internal directories.
Click to hide internal directories.