MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / read

Method read

src/secrets/src/lib.rs:104–107  ·  view source on GitHub ↗
(&self, id: CatalogItemId)

Source from the content-addressed store, hash-verified

102#[async_trait]
103impl SecretsReader for InMemorySecretsController {
104 async fn read(&self, id: CatalogItemId) -> Result<Vec<u8>, anyhow::Error> {
105 let contents = self.data.lock().unwrap().get(&id).cloned();
106 contents.ok_or_else(|| anyhow::anyhow!("secret does not exist"))
107 }
108}

Callers 6

read_stringMethod · 0.45
pagerFunction · 0.45
read_in_task_ifMethod · 0.45
validateMethod · 0.45
rewrite_fileFunction · 0.45
getMethod · 0.45

Calls 3

unwrapMethod · 0.80
lockMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected