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

Function request

libatomic/src/daemon/sandbox_grants.rs:626–635  ·  view source on GitHub ↗
(view: &str, ttl_secs: u64)

Source from the content-addressed store, hash-verified

624 const HOUR: u64 = 60 * 60;
625
626 fn request(view: &str, ttl_secs: u64) -> GrantRequest {
627 GrantRequest {
628 repository_id: b"repo".to_vec(),
629 view: view.to_string(),
630 view_id: None,
631 acting_as: None,
632 capabilities: ["sandbox.read".to_string()].into(),
633 ttl_secs,
634 }
635 }
636
637 fn settable_clock() -> (Arc<Mutex<DateTime<Utc>>>, InMemorySandboxGrants) {
638 let now = Arc::new(Mutex::new(Utc::now()));

Calls

no outgoing calls