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

Function view_ref_id

libatomic/src/daemon/sandbox_grants.rs:559–561  ·  view source on GitHub ↗

The `ViewRef.view_id` the handlers issue for a view name.

(name: &str)

Source from the content-addressed store, hash-verified

557
558/// The `ViewRef.view_id` the handlers issue for a view name.
559pub fn view_ref_id(name: &str) -> Vec<u8> {
560 blake3::hash(name.as_bytes()).as_bytes().to_vec()
561}
562
563impl DaemonState {
564 /// The sandbox principal a request acts under, or `None` for a local,

Callers 4

view_refFunction · 0.85
named_viewFunction · 0.85
require_targetMethod · 0.85
query_view_nameFunction · 0.85

Calls 2

hashFunction · 0.50
as_bytesMethod · 0.45

Tested by

no test coverage detected