pub struct NullSecretsBackend;Expand description
No-op secrets backend used when no real backend is configured.
Returns Err("no secrets backend configured") for every call.
Suitable for deployments that don’t use raw transport or managed credentials.
Trait Implementations§
Source§impl Debug for NullSecretsBackend
impl Debug for NullSecretsBackend
Source§impl Default for NullSecretsBackend
impl Default for NullSecretsBackend
Source§fn default() -> NullSecretsBackend
fn default() -> NullSecretsBackend
Returns the “default value” for a type. Read more
Source§impl SecretsBackend for NullSecretsBackend
impl SecretsBackend for NullSecretsBackend
Source§fn resolve_tls_profile<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
_tenant: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<TlsHandle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resolve_tls_profile<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
_tenant: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<TlsHandle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Resolve a named TLS profile to an opaque handle.
name uses scheme-routing: vault://prod/tls/kafka, file://kafka-prod.Source§fn get_credential<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
_tenant: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<CredentialHandle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_credential<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
_tenant: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<CredentialHandle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Resolve a named credential.
Source§fn get_string<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
_tenant: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<SecretString>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_string<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
_tenant: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<SecretString>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Read a named secret as a zeroizing string.
Auto Trait Implementations§
impl Freeze for NullSecretsBackend
impl RefUnwindSafe for NullSecretsBackend
impl Send for NullSecretsBackend
impl Sync for NullSecretsBackend
impl Unpin for NullSecretsBackend
impl UnsafeUnpin for NullSecretsBackend
impl UnwindSafe for NullSecretsBackend
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