Struct ::exo::be::SecretsManager

Overview

SecretsManager

Methods

fn keys(self) -> Vec

Returns all keys of the SecretsManager

Example

let sm = exo::be::SecretsManager::new().await?;
assert!(sm.keys().len() > 0);
fn get(self, key: String) -> Option

Tries to get a scret from the SecretsManager.

Example

let sm = exo::be::SecretsManager::new().await?;
assert_eq!(sm.get("secret"), Some("Password"));
async fn new(self) -> Result

Create a new SecretsManager from the database.

let sm = exo::be::SecretsManager::new().await?;
assert_eq!(sm.get("secret"), Some("Password"));