MCPcopy
hub / github.com/opentofu/opentofu / Context

Struct Context

internal/tofu/context.go:74–94  ·  view source on GitHub ↗

Context represents all the context that OpenTofu needs in order to perform operations on infrastructure. This structure is built using NewContext.

Source from the content-addressed store, hash-verified

72// perform operations on infrastructure. This structure is built using
73// NewContext.
74type 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected