terraform

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertResources added in v0.6.4

func ConvertResources(module *tfjson.StateModule, rawGraph string) ([]*proto.Resource, error)

ConvertResources consumes Terraform state and a GraphViz representation produced by `terraform graph` to produce resources consumable by Coder.

func Serve

func Serve(ctx context.Context, options *ServeOptions) error

Serve starts a dRPC server on the provided transport speaking Terraform provisioner.

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  string
	Logger     slog.Logger
}

Jump to

Keyboard shortcuts

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