Documentation
¶
Index ¶
- Variables
- func ConvertResourcesAndParameters(modules []*tfjson.StateModule, rawGraph string) ([]*proto.Resource, []*proto.RichParameter, error)
- func Install(ctx context.Context, log slog.Logger, dir string, wantVersion *version.Version) (string, error)
- func Serve(ctx context.Context, options *ServeOptions) error
- type ServeOptions
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. TerraformVersion = version.Must(version.NewVersion("1.3.4")) )
Functions ¶
func ConvertResourcesAndParameters ¶ added in v0.15.0
func ConvertResourcesAndParameters(modules []*tfjson.StateModule, rawGraph string) ([]*proto.Resource, []*proto.RichParameter, error)
ConvertResourcesAndParameters consumes Terraform state and a GraphViz representation produced by `terraform graph` to produce resources consumable by Coder. nolint:gocyclo
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
// ExitTimeout defines how long we will wait for a running Terraform
// command to exit (cleanly) if the provision was stopped. This only
// happens when the command is still running after the provision
// stream is closed. If the provision is canceled via RPC, this
// timeout will not be used.
//
// This is a no-op on Windows where the process can't be interrupted.
//
// Default value: 5 minutes.
ExitTimeout time.Duration
}
Click to show internal directories.
Click to hide internal directories.