MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / get_secret

Method get_secret

crates/chat-cli/src/database/mod.rs:413–416  ·  view source on GitHub ↗
(&self, key: &str)

Source from the content-addressed store, hash-verified

411 }
412
413 pub async fn get_secret(&self, key: &str) -> Result<Option<Secret>, DatabaseError> {
414 trace!(key, "getting secret");
415 Ok(self.get_entry::<String>(Table::Auth, key)?.map(Into::into))
416 }
417
418 pub async fn set_secret(&self, key: &str, value: &str) -> Result<(), DatabaseError> {
419 trace!(key, "setting secret");

Callers 3

secret_get_timeFunction · 0.80
loadMethod · 0.80

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected