diff options
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/lang/functions.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/lang/functions.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/lang/functions.go b/vendor/github.com/hashicorp/terraform/lang/functions.go index 2c7b548..b77a55f 100644 --- a/vendor/github.com/hashicorp/terraform/lang/functions.go +++ b/vendor/github.com/hashicorp/terraform/lang/functions.go | |||
@@ -3,6 +3,7 @@ package lang | |||
3 | import ( | 3 | import ( |
4 | "fmt" | 4 | "fmt" |
5 | 5 | ||
6 | ctyyaml "github.com/zclconf/go-cty-yaml" | ||
6 | "github.com/zclconf/go-cty/cty" | 7 | "github.com/zclconf/go-cty/cty" |
7 | "github.com/zclconf/go-cty/cty/function" | 8 | "github.com/zclconf/go-cty/cty/function" |
8 | "github.com/zclconf/go-cty/cty/function/stdlib" | 9 | "github.com/zclconf/go-cty/cty/function/stdlib" |
@@ -30,6 +31,7 @@ func (s *Scope) Functions() map[string]function.Function { | |||
30 | 31 | ||
31 | s.funcs = map[string]function.Function{ | 32 | s.funcs = map[string]function.Function{ |
32 | "abs": stdlib.AbsoluteFunc, | 33 | "abs": stdlib.AbsoluteFunc, |
34 | "abspath": funcs.AbsPathFunc, | ||
33 | "basename": funcs.BasenameFunc, | 35 | "basename": funcs.BasenameFunc, |
34 | "base64decode": funcs.Base64DecodeFunc, | 36 | "base64decode": funcs.Base64DecodeFunc, |
35 | "base64encode": funcs.Base64EncodeFunc, | 37 | "base64encode": funcs.Base64EncodeFunc, |
@@ -85,6 +87,7 @@ func (s *Scope) Functions() map[string]function.Function { | |||
85 | "min": stdlib.MinFunc, | 87 | "min": stdlib.MinFunc, |
86 | "pathexpand": funcs.PathExpandFunc, | 88 | "pathexpand": funcs.PathExpandFunc, |
87 | "pow": funcs.PowFunc, | 89 | "pow": funcs.PowFunc, |
90 | "range": stdlib.RangeFunc, | ||
88 | "replace": funcs.ReplaceFunc, | 91 | "replace": funcs.ReplaceFunc, |
89 | "reverse": funcs.ReverseFunc, | 92 | "reverse": funcs.ReverseFunc, |
90 | "rsadecrypt": funcs.RsaDecryptFunc, | 93 | "rsadecrypt": funcs.RsaDecryptFunc, |
@@ -114,7 +117,10 @@ func (s *Scope) Functions() map[string]function.Function { | |||
114 | "upper": stdlib.UpperFunc, | 117 | "upper": stdlib.UpperFunc, |
115 | "urlencode": funcs.URLEncodeFunc, | 118 | "urlencode": funcs.URLEncodeFunc, |
116 | "uuid": funcs.UUIDFunc, | 119 | "uuid": funcs.UUIDFunc, |
120 | "uuidv5": funcs.UUIDV5Func, | ||
117 | "values": funcs.ValuesFunc, | 121 | "values": funcs.ValuesFunc, |
122 | "yamldecode": ctyyaml.YAMLDecodeFunc, | ||
123 | "yamlencode": ctyyaml.YAMLEncodeFunc, | ||
118 | "zipmap": funcs.ZipmapFunc, | 124 | "zipmap": funcs.ZipmapFunc, |
119 | } | 125 | } |
120 | 126 | ||