pub struct VaultIntegration { /* private fields */ }
Expand description
Vault integration for authentication framework
Implementations§
Source§impl VaultIntegration
impl VaultIntegration
Sourcepub fn vault_integration(&self) -> Option<&dyn VaultClient>
pub fn vault_integration(&self) -> Option<&dyn VaultClient>
Get the underlying vault client (for advanced operations)
Source§impl VaultIntegration
impl VaultIntegration
Sourcepub async fn new(config: VaultConfig) -> Result<Self, VaultError>
pub async fn new(config: VaultConfig) -> Result<Self, VaultError>
Create a new vault integration
Sourcepub async fn get_secret_cached(&self, name: &str) -> Result<String, VaultError>
pub async fn get_secret_cached(&self, name: &str) -> Result<String, VaultError>
Get a secret with caching
Sourcepub async fn get_master_key(&self) -> Result<String, VaultError>
pub async fn get_master_key(&self) -> Result<String, VaultError>
Get master key from vault
Sourcepub async fn get_api_config(
&self,
) -> Result<HashMap<String, String>, VaultError>
pub async fn get_api_config( &self, ) -> Result<HashMap<String, String>, VaultError>
Get API configuration from vault
Sourcepub async fn clear_cache(&self)
pub async fn clear_cache(&self)
Clear the secret cache
Sourcepub fn client_info(&self) -> VaultClientInfo
pub fn client_info(&self) -> VaultClientInfo
Get vault client information
Sourcepub async fn test_connection(&self) -> Result<(), VaultError>
pub async fn test_connection(&self) -> Result<(), VaultError>
Test vault connectivity
Auto Trait Implementations§
impl !Freeze for VaultIntegration
impl !RefUnwindSafe for VaultIntegration
impl Send for VaultIntegration
impl Sync for VaultIntegration
impl Unpin for VaultIntegration
impl !UnwindSafe for VaultIntegration
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