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

Method revalidate

libatomic/src/daemon/sandbox_grants.rs:545–555  ·  view source on GitHub ↗

Check the grant again — after time spent waiting for the repository, it may have expired or been revoked.

(&self, state: &DaemonState)

Source from the content-addressed store, hash-verified

543 /// Check the grant again — after time spent waiting for the repository,
544 /// it may have expired or been revoked.
545 pub fn revalidate(&self, state: &DaemonState) -> Result<(), Status> {
546 match &self.token {
547 Some(token) => state
548 .sandbox_grants()
549 .resolve(token)
550 .map(|_| ())
551 .map_err(|e| e.status()),
552 None if self.grant.is_live_at(Utc::now()) => Ok(()),
553 None => Err(GrantError::Expired(self.grant.expires).status()),
554 }
555 }
556}
557
558/// The `ViewRef.view_id` the handlers issue for a view name.

Callers 14

materializeMethod · 0.80
get_file_statesMethod · 0.80
get_changesMethod · 0.80
publish_provenanceMethod · 0.80
submit_changeMethod · 0.80
submit_attestationMethod · 0.80
reserve_turn_implFunction · 0.80
append_envelopes_implFunction · 0.80
prepare_checkpoint_implFunction · 0.80

Calls 4

sandbox_grantsMethod · 0.80
is_live_atMethod · 0.80
resolveMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected