pub trait TerragruntResolver:
Send
+ Sync
+ Debug {
// Required method
fn resolve(
&self,
component_dir: &Path,
ctx: &TgContext,
) -> Result<TerragruntConfig>;
}Expand description
Trait every Terragrunt resolver implements. Phase 6 ships exactly one
implementation: FsTerragruntResolver.
Required Methods§
Sourcefn resolve(
&self,
component_dir: &Path,
ctx: &TgContext,
) -> Result<TerragruntConfig>
fn resolve( &self, component_dir: &Path, ctx: &TgContext, ) -> Result<TerragruntConfig>
Resolve the Terragrunt configuration at component_dir (the dir
containing the component’s terragrunt.hcl).
§Errors
Returns crate::Error only on fatal I/O failures the resolver
cannot continue past (e.g. the component dir disappears mid-walk).
Per-include cycles, path-escapes, function errors are surfaced as
Diagnostics on the returned TerragruntConfig.