lib

package
v0.0.0-...-ed7baaf Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(i interface{}) interface{}

func FixEscaping

func FixEscaping(s string) string

FixEscaping makes quotes in quotes syntax to work ex: "my_var" = "${file("/dev/null")}"

func Format

func Format(s string) (string, error)

Format outputs a HCL file that is compliant with `terraform fmt`

func LoadData

func LoadData(dirs []string) (string, error)

func ToHCL

func ToHCL(j string) (string, error)

ToHCL takes a JSON input and outputs the corresponding HCL

Types

type MapSlice

type MapSlice yaml.MapSlice

We alias the yaml.MapSlice type in order to implement MarshalJSON() interface

func (MapSlice) MarshalJSON

func (m MapSlice) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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