value

package
v0.0.0-...-173f61c Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 8 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvalAttribute

func EvalAttribute(ctx *hcl.EvalContext, attribute *hcl.Attribute) (cty.Value, errors.Error)

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

func EvalExpression(ctx *hcl.EvalContext, expr hcl.Expression) (cty.Value, errors.Error)

EvalExpression evaluate the hcl expression.

func EvaluateExpressions

func EvaluateExpressions(ctx *hcl.EvalContext, expressions map[string]hcl.Expression) errors.Error

EvaluateExpressions evaluate the the list of expressions.

func IsMap

func IsMap(value cty.Value) bool

IsMap return true if value is a map.

func IsSlice

func IsSlice(value cty.Value) bool

IsSlice returns true if value is a slice.

func ToStrictString

func ToStrictString(value cty.Value) (string, errors.Error)

ToStrictString convert the value into a string.

func ToValue

func ToValue(value interface{}) cty.Value

ToValue convert the interface into a value.

func ToValueList

func ToValueList(input []interface{}) cty.Value

ToValueList convert the array into a value.

func ToValueMap

func ToValueMap(input map[string]interface{}) cty.Value

ToValueMap convert the map into a value.

func ValuesSlice

func ValuesSlice(value cty.Value) ([]cty.Value, errors.Error)

ValuesSlice convert the value into a slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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