Skip to content

matcher

Structs

Traits

  • MatcherCompiler - Compiles an inner [SecretMatcher] into a [CompiledMatcher].

firma_secret_provider::matcher::CompiledMatcher

Section titled “firma_secret_provider::matcher::CompiledMatcher”

Struct

A compiled, ready-to-run secret matcher.

Methods:

  • fn compile(spec: &SecretMatcher) -> Result<Self, MatcherError> - Compile and validate a matcher spec.
  • fn rewrite<impl FnMut(String, SecretString, HashSet<Authority>, Option<String>) -> SecretPlaceholder>(self: &Self, output: &[u8], mint: & mut impl Trait) -> Result<Vec<u8>, MatcherError> - Extract secrets from output and return it rewritten with placeholders.

Trait Implementations:

  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result

firma_secret_provider::matcher::MatcherCompiler

Section titled “firma_secret_provider::matcher::MatcherCompiler”

Trait

Compiles an inner [SecretMatcher] into a [CompiledMatcher].

Methods:

  • Ok
  • compile: Compile and validate a matcher spec.