Documentation
¶
Overview ¶
Package value contains types and methods to deal with cty value
Package value contains types and methods to deal with cty value
Index ¶
- func EvalAttribute(ctx *hcl.EvalContext, attribute *hcl.Attribute) (cty.Value, errors.Error)
- func EvalAttributeAsSlice(ctx *hcl.EvalContext, attribute *hcl.Attribute) ([]cty.Value, errors.Error)
- func EvalExpression(ctx *hcl.EvalContext, expr hcl.Expression) (cty.Value, errors.Error)
- func EvaluateExpressions(ctx *hcl.EvalContext, expressions map[string]hcl.Expression) errors.Error
- func IsMap(value cty.Value) bool
- func IsSlice(value cty.Value) bool
- func ToStrictString(value cty.Value) (string, errors.Error)
- func ToValue(value interface{}) cty.Value
- func ToValueList(input []interface{}) cty.Value
- func ToValueMap(input map[string]interface{}) cty.Value
- func ValuesSlice(value cty.Value) ([]cty.Value, errors.Error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvalAttribute ¶
EvalAttribute evaluate the hcl attribute.
func EvalAttributeAsSlice ¶
func EvalAttributeAsSlice(ctx *hcl.EvalContext, attribute *hcl.Attribute) ([]cty.Value, errors.Error)
EvalAttributeAsSlice evaluate the hcl attribute and convert it into a slice.
func EvalExpression ¶
EvalExpression evaluate the hcl expression.
func EvaluateExpressions ¶
EvaluateExpressions evaluate the the list of expressions.
func ToStrictString ¶
ToStrictString convert the value into a string.
func ToValueList ¶
ToValueList convert the array into a value.
func ToValueMap ¶
ToValueMap convert the map into a value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.