From 13f3daa3b33ee9f23bd2ffc0b46c8d20de3f6407 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 4 May 2015 10:51:34 -0700 Subject: [PATCH] terraform: update comment on interpolater stuff --- terraform/eval_context_builtin.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/terraform/eval_context_builtin.go b/terraform/eval_context_builtin.go index 33a71b5dd..efc7d04fe 100644 --- a/terraform/eval_context_builtin.go +++ b/terraform/eval_context_builtin.go @@ -12,10 +12,20 @@ import ( // BuiltinEvalContext is an EvalContext implementation that is used by // Terraform by default. type BuiltinEvalContext struct { - PathValue []string + // PathValue is the Path that this context is operating within. + PathValue []string + + // Interpolater setting below affect the interpolation of variables. + // + // The InterpolaterVars are the exact value for ${var.foo} values. + // The map is shared between all contexts and is a mapping of + // PATH to KEY to VALUE. Because it is shared by all contexts as well + // as the Interpolater itself, it is protected by InterpolaterVarLock + // which must be locked during any access to the map. Interpolater *Interpolater InterpolaterVars map[string]map[string]string InterpolaterVarLock *sync.Mutex + Hooks []Hook InputValue UIInput Providers map[string]ResourceProviderFactory