gocloud.dev: gocloud.dev/internal/testing/terraform Index | Files

package terraform

import "gocloud.dev/internal/testing/terraform"

Package terraform provides a function to read Terraform output.


Package Files


func ReadOutput Uses

func ReadOutput(dir string) (map[string]Output, error)

ReadOutput runs `terraform output` on the given directory and returns the parsed result.

type Output Uses

type Output struct {
    Type      string      `json:"type"` // one of "string", "list", or "map"
    Sensitive bool        `json:"sensitive"`
    Value     interface{} `json:"value"`

Output describes a single output value.

Package terraform imports 3 packages (graph). Updated 2019-01-30. Refresh now. Tools for package owners.