Functions returns a set of functions that are safe to use in the context of evaluating Terraform expressions without any ability to reference local files. Functions that refer to file operations are replaced with stubs that return a descriptive error to the user.
()
| 15 | // Functions that refer to file operations are replaced with stubs that return a |
| 16 | // descriptive error to the user. |
| 17 | func Functions() map[string]function.Function { |
| 18 | return allFunctions |
| 19 | } |
| 20 | |
| 21 | var ( |
| 22 | // Adapted from github.com/aquasecurity/trivy-iac@v0.8.0/pkg/scanners/terraform/parser/functions.go |