Skip to content

registry

Structs


firma_secret_provider::registry::IntegrationRegistry

Section titled “firma_secret_provider::registry::IntegrationRegistry”

Struct

Registry of CLI integration specs, keyed by binary basename.

Starts with the four built-in specs and can be extended with custom specs loaded from firma.toml (secret_providers table entries). Custom specs take precedence over built-ins when names collide.

Methods:

  • fn with_builtins() -> Self - Build a registry containing the built-in specs for all supported vault
  • fn for_binary(self: &Self, binary_name: &str) -> Option<&CliIntegrationSpec<SecretMatcher>> - Look up a spec by binary basename. Returns None for unknown tools.
  • fn push(self: & mut Self, spec: CliIntegrationSpec<SecretMatcher>) - Add a custom spec. If a spec with the same binary name already exists

Trait Implementations:

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