Revoke a delegation by presenting a signed revocation document.
(
&self,
delegation_id: &str,
req: &RevokeDelegationRequest,
)
| 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 | /// |
no test coverage detected