pub enum PreprocessMode {
Active,
Passive,
}Expand description
Execution envelope for the preprocessing pipeline.
secrets.lex §7.4 (“Auth Fatigue and Passive Commands”) draws a
hard line between two envelopes:
- Active (
dodot up): evaluates templates, batchessecret()calls per provider, prompts for auth once per run, writes rendered files and baselines to disk. - Passive (
dodot status,dodot up --dry-run): MUST NOT evaluate templates. Drift detection runs entirely off the baseline cache. No provider calls. No datastore writes. No baseline writes.
This enum is the single boolean the pipeline gates on. Active is the existing behavior; Passive is the §7.4-compliant read-only path. See issue #121.
Variants§
Active
Run preprocessors, write rendered outputs to the datastore,
write baselines to the cache. The original dodot up path.
Passive
Read everything from the baseline cache. Skip preprocessor
expansion (no provider calls), skip datastore writes, skip
baseline writes. For preprocessor entries with no baseline
yet, surface a passthrough placeholder so callers can render
“unknown — run dodot up first” without falling through to
template evaluation.
Trait Implementations§
Source§impl Clone for PreprocessMode
impl Clone for PreprocessMode
Source§fn clone(&self) -> PreprocessMode
fn clone(&self) -> PreprocessMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreprocessMode
impl Debug for PreprocessMode
Source§impl PartialEq for PreprocessMode
impl PartialEq for PreprocessMode
impl Copy for PreprocessMode
impl Eq for PreprocessMode
impl StructuralPartialEq for PreprocessMode
Auto Trait Implementations§
impl Freeze for PreprocessMode
impl RefUnwindSafe for PreprocessMode
impl Send for PreprocessMode
impl Sync for PreprocessMode
impl Unpin for PreprocessMode
impl UnsafeUnpin for PreprocessMode
impl UnwindSafe for PreprocessMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.