terraform

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package terraform provides a function to read Terraform output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadOutput

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

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

Types

type Output

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.

Jump to

Keyboard shortcuts

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