hclutil

package
v0.0.0-...-f666d52 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadDir

func ReadDir(path string) (map[string]*hcl.File, error)

func ToString

func ToString(v cty.Value) (s string, err error)

func ToValue

func ToValue(s string, t cty.Type) (cty.Value, error)

func WriteVars

func WriteVars(path string, vars Variables) error

Types

type Variable

type Variable struct {
	*configs.Variable
	// contains filtered or unexported fields
}

Variable represents an abstract of the coalesced state of input variables and defined variables for a given set of terraform scripts. This is used to prompt a command-line user to supply values for variables, therefore it implements the prompt.ValuePrompter interface.

func (*Variable) Default

func (v *Variable) Default() string

func (*Variable) IsNull

func (v *Variable) IsNull() bool

func (*Variable) Message

func (v *Variable) Message() string

func (*Variable) SetValue

func (v *Variable) SetValue(value cty.Value)

func (*Variable) Type

func (v *Variable) Type() cty.Type

func (*Variable) Value

func (v *Variable) Value() cty.Value

type Variables

type Variables map[string]*Variable

func ReadVars

func ReadVars(path string) (Variables, error)

func (Variables) Bytes

func (vars Variables) Bytes() []byte

func (Variables) String

func (vars Variables) String() string

Jump to

Keyboard shortcuts

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