pub trait SecretsStore: Send + Sync {
// Required method
fn read(&self, scope: &TenantCtx, name: &str) -> Result<Vec<u8>, String>;
// Provided methods
fn write(
&self,
scope: &TenantCtx,
name: &str,
bytes: &[u8],
) -> Result<(), String> { ... }
fn delete(&self, scope: &TenantCtx, name: &str) -> Result<(), String> { ... }
}Expand description
Host-facing secrets-store trait mirroring greentic:secrets/store@1.0.0.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".