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 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.