pub struct GpgPreprocessor { /* private fields */ }Expand description
gpg decryption preprocessor. Constructed from
[preprocessor.gpg] config + the shared CommandRunner.
Configurable extensions (default ["gpg", "asc"]) cover both
the binary-armored form (.gpg) and the ASCII-armored form
(.asc); the same gpg --decrypt call handles both.
Implementations§
Source§impl GpgPreprocessor
impl GpgPreprocessor
pub fn new(runner: Arc<dyn CommandRunner>, extensions: Vec<String>) -> Self
pub fn from_env(runner: Arc<dyn CommandRunner>) -> Self
Trait Implementations§
Source§impl Preprocessor for GpgPreprocessor
impl Preprocessor for GpgPreprocessor
Source§fn transform_type(&self) -> TransformType
fn transform_type(&self) -> TransformType
The safety model for this transformation.
Source§fn matches_extension(&self, filename: &str) -> bool
fn matches_extension(&self, filename: &str) -> bool
Whether this preprocessor handles a file with the given name.
Source§fn stripped_name(&self, filename: &str) -> String
fn stripped_name(&self, filename: &str) -> String
Strip the preprocessor extension to get the logical filename.
e.g.
"config.toml.tmpl" → "config.toml".Source§fn expand(&self, source: &Path, _fs: &dyn Fs) -> Result<Vec<ExpandedFile>>
fn expand(&self, source: &Path, _fs: &dyn Fs) -> Result<Vec<ExpandedFile>>
Expand the source file into one or more output files. Read more
Source§fn supports_reverse_merge(&self) -> bool
fn supports_reverse_merge(&self) -> bool
Whether this preprocessor participates in the reverse-merge
pipeline. Reverse-merge is the cache-backed flow that lets
dodot transform check propagate edits from the deployed file
back into the source by writing a unified diff (and, for
ambiguous edits, dodot-conflict marker blocks). Read moreAuto Trait Implementations§
impl Freeze for GpgPreprocessor
impl !RefUnwindSafe for GpgPreprocessor
impl Send for GpgPreprocessor
impl Sync for GpgPreprocessor
impl Unpin for GpgPreprocessor
impl UnsafeUnpin for GpgPreprocessor
impl !UnwindSafe for GpgPreprocessor
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