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

Method revoke_delegation

atomic-remote/src/storage.rs:485–495  ·  view source on GitHub ↗

Revoke a delegation by presenting a signed revocation document.

(
        &self,
        delegation_id: &str,
        req: &RevokeDelegationRequest,
    )

Source from the content-addressed store, hash-verified

483
484 /// Revoke a delegation by presenting a signed revocation document.
485 pub async fn revoke_delegation(
486 &self,
487 delegation_id: &str,
488 req: &RevokeDelegationRequest,
489 ) -> Result<DelegationInfo, RemoteError> {
490 self.post(
491 &format!("/delegations/{}/revoke", urlencoding::encode(delegation_id)),
492 req,
493 )
494 .await
495 }
496
497 /// Bump an agent's epoch: every grant issued to it before now is dead.
498 ///

Callers 2

executeMethod · 0.80
notify_serverMethod · 0.80

Calls 1

postMethod · 0.80

Tested by

no test coverage detected