mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-21 18:56:57 -05:00
Although our EvalContext API is primarily focused on what the eval system needs, it's desirable for higher-level subsystems that wrap the evaluator to be able to guarantee they are using the same provider and other dependencies, so we'll expose the EvalContext that each ConfigInstance is associated with in the public API. The Providers interface now also grows to include NewConfiguredProvider as a way to instantiate a configured provider instance. The eval system doesn't need that itself, but exposing it here means that a caller can be confident that they are definitely instantiating and configuring the same provider that the eval system had previously used to validate the configuration. Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
5.3 KiB
5.3 KiB