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

Method load_revocation

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

The stored revocation for a delegation, if one exists.

(&self, id: &str)

Source from the content-addressed store, hash-verified

854
855 /// The stored revocation for a delegation, if one exists.
856 pub fn load_revocation(&self, id: &str) -> Result<Option<String>, IdentityError> {
857 let path = self.revocation_path(id);
858 if !path.exists() {
859 return Ok(None);
860 }
861 Ok(Some(fs::read_to_string(path)?))
862 }
863
864 /// Is a revocation recorded locally for this delegation?
865 ///

Callers

nothing calls this directly

Calls 2

revocation_pathMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected