MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / load_revocation

Method load_revocation

atomic-identity/src/store.rs:922–928  ·  view source on GitHub ↗

The stored revocation for a delegation, if one exists.

(&self, id: &str)

Source from the content-addressed store, hash-verified

920
921 /// The stored revocation for a delegation, if one exists.
922 pub fn load_revocation(&self, id: &str) -> Result<Option<String>, IdentityError> {
923 let path = self.revocation_path(id);
924 if !path.exists() {
925 return Ok(None);
926 }
927 Ok(Some(fs::read_to_string(path)?))
928 }
929
930 /// Is a revocation recorded locally for this delegation?
931 ///

Callers

nothing calls this directly

Calls 2

revocation_pathMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected