Context represents all the context that OpenTofu needs in order to perform operations on infrastructure. This structure is built using NewContext.
| 72 | // perform operations on infrastructure. This structure is built using |
| 73 | // NewContext. |
| 74 | type Context struct { |
| 75 | // meta captures some misc. information about the working directory where |
| 76 | // we're taking these actions, and thus which should remain steady between |
| 77 | // operations. |
| 78 | meta *ContextMeta |
| 79 | |
| 80 | plugins *contextPlugins |
| 81 | |
| 82 | hooks []Hook |
| 83 | sh *stopHook |
| 84 | uiInput UIInput |
| 85 | |
| 86 | parallelSem Semaphore |
| 87 | l sync.Mutex // Lock acquired during any task |
| 88 | providerInputConfig map[string]map[string]cty.Value |
| 89 | runCond *sync.Cond |
| 90 | runContext context.Context |
| 91 | runContextCancel context.CancelFunc |
| 92 | |
| 93 | encryption encryption.Encryption |
| 94 | } |
| 95 | |
| 96 | // (additional methods on Context can be found in context_*.go files.) |
| 97 |
nothing calls this directly
no outgoing calls
no test coverage detected