github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/helper/pluginutils/hclspecutils/spec_funcs.go (about) 1 package hclspecutils 2 3 import ( 4 "github.com/zclconf/go-cty/cty/function" 5 "github.com/zclconf/go-cty/cty/function/stdlib" 6 ) 7 8 // specFuncs exposes the stdlib functions. 9 var specFuncs = map[string]function.Function{ 10 "abs": stdlib.AbsoluteFunc, 11 "coalesce": stdlib.CoalesceFunc, 12 "concat": stdlib.ConcatFunc, 13 "hasindex": stdlib.HasIndexFunc, 14 "int": stdlib.IntFunc, 15 "jsondecode": stdlib.JSONDecodeFunc, 16 "jsonencode": stdlib.JSONEncodeFunc, 17 "length": stdlib.LengthFunc, 18 "lower": stdlib.LowerFunc, 19 "max": stdlib.MaxFunc, 20 "min": stdlib.MinFunc, 21 "reverse": stdlib.ReverseFunc, 22 "strlen": stdlib.StrlenFunc, 23 "substr": stdlib.SubstrFunc, 24 "upper": stdlib.UpperFunc, 25 }