#[non_exhaustive]pub struct PipelineOptions {
pub root: Arc<Path>,
pub environment: Option<Arc<str>>,
pub env_var_mode: EnvVarMode,
pub allowed_env: BTreeSet<Arc<str>>,
pub repo_vars: Map,
pub max_walk_depth: u32,
pub max_total_files: u64,
pub max_file_bytes: u64,
pub max_include_depth: u32,
pub follow_symlinks: bool,
}Expand description
Options for Pipeline::run.
Build via [PipelineOptionsBuilder]; defaults are conservative
(resource limits at spec defaults, env mode strict-with-empty-allowlist).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.root: Arc<Path>Workspace root passed by the caller.
environment: Option<Arc<str>>Optional environment name to pin (var.environment).
env_var_mode: EnvVarModeHow the evaluator treats get_env(...).
allowed_env: BTreeSet<Arc<str>>Allowlist of TF_VAR_* / generic env vars visible to get_env /
Terragrunt funcs. Defaults to empty.
repo_vars: MapRepo-level var.* bindings (CLI --var k=v / .tfvars). Stored as
a sorted vec for stable iteration; see crate::ir::Map.
max_walk_depth: u32Maximum walk depth (discovery). Default: 16.
max_total_files: u64Maximum total files in the workspace. Default: 200_000.
max_file_bytes: u64Maximum size per file. Default: 4 MiB.
max_include_depth: u32Maximum Terragrunt include depth. Default: 32.
follow_symlinks: boolWhether the discoverer follows symlinks. Default: false.
Implementations§
Source§impl PipelineOptions
impl PipelineOptions
Sourcepub fn builder() -> PipelineOptionsBuilder<((), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> PipelineOptionsBuilder<((), (), (), (), (), (), (), (), (), ())>
Create a builder for building PipelineOptions.
On the builder, call .root(...), .environment(...)(optional), .env_var_mode(...)(optional), .allowed_env(...)(optional), .repo_vars(...)(optional), .max_walk_depth(...)(optional), .max_total_files(...)(optional), .max_file_bytes(...)(optional), .max_include_depth(...)(optional), .follow_symlinks(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of PipelineOptions.
Trait Implementations§
Source§impl Clone for PipelineOptions
impl Clone for PipelineOptions
Source§fn clone(&self) -> PipelineOptions
fn clone(&self) -> PipelineOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more