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

Method read_string

src/secrets/src/lib.rs:60–63  ·  view source on GitHub ↗

Returns the string contents of the specified secret. Returns an error if the secret's contents cannot be decoded as UTF-8.

(&self, id: CatalogItemId)

Source from the content-addressed store, hash-verified

58 ///
59 /// Returns an error if the secret's contents cannot be decoded as UTF-8.
60 async fn read_string(&self, id: CatalogItemId) -> Result<String, anyhow::Error> {
61 let contents = self.read(id).await?;
62 String::from_utf8(contents).context("converting secret value to string")
63 }
64}
65
66#[derive(Debug)]

Callers 5

connect_s3tablesMethod · 0.80
read_credentialsMethod · 0.80

Implementers 5

secrets.rssrc/orchestrator-kubernetes/src/secret
lib.rssrc/secrets/src/lib.rs
cache.rssrc/secrets/src/cache.rs
secrets.rssrc/orchestrator-process/src/secrets.r
lib.rssrc/aws-secrets-controller/src/lib.rs

Calls 2

readMethod · 0.45
contextMethod · 0.45

Tested by

no test coverage detected