hcl

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data added in v0.37.0

type Data map[string]interface{}

Data represents a terraform data block in a File

type File

type File struct {
	Terraform Terraform
	Provider  map[string]Provider
	Variable  map[string]Variable
	Module    map[string]Module
	Data      map[string]Data
}

File represents a parsed HCL Terraform file

func GetHCLFileFromTerraform

func GetHCLFileFromTerraform(terraform string) (*File, error)

GetHCLFileFromTerraform will return a File for the passed string of hcl terraform

func (*File) GetDataNames added in v0.37.0

func (f *File) GetDataNames() []string

GetDataNames returns the list of data names defined in the file

func (*File) GetModuleNames

func (f *File) GetModuleNames() []string

GetModuleNames returns the list of module names defined in the file

func (*File) GetVariableNames

func (f *File) GetVariableNames() []string

GetVariableNames returns the list of variable names defined in the file

type Module

type Module map[string]interface{}

Module represents a terraform module block in a File

type Provider

type Provider struct{}

Provider represents a terraform provider block in a File

type Terraform

type Terraform struct{}

Terraform represents a terraform block in a File

type Variable

type Variable struct {
	Default string
}

Variable represents a terraform variable block in a File

Jump to

Keyboard shortcuts

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