Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EnvFunc = function.New(&function.Spec{ Params: []function.Parameter{ { Name: "str", Type: cty.String, AllowDynamicType: true, }, }, Type: function.StaticReturnType(cty.String), Impl: func(args []cty.Value, retType cty.Type) (cty.Value, error) { in := args[0].AsString() out := os.Getenv(in) return cty.StringVal(out), nil }, })
EnvFunc gets an environment variable, if env variable is not found it will return blank string
Functions ¶
func EmptyBody ¶
EmptyBody returns a body with no content. This body can be used as a placeholder when a body is required but no body content is available.
func MergeBodiesWithOverides ¶
MergeBodiesWithOverides merges several bodies into one. This is similar implementation as the one in official library, but it overwrites attributes that are already defined.
func NewContext ¶
func NewContext() *hcl.EvalContext
NewContext creates a new evaluation context that supports all terraform functions and custom functions defined in tau
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.