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

Function attested_rank

libatomic/src/daemon/services_agent.rs:859–865  ·  view source on GitHub ↗
(entry: &VaultEntry)

Source from the content-addressed store, hash-verified

857fn sort_listing(entries: &mut [VaultEntry], sort: VaultListSort, reverse: bool) {
858 use VaultListSort as S;
859 fn attested_rank(entry: &VaultEntry) -> u8 {
860 match entry.attested.as_deref() {
861 Some("fresh") => 0,
862 Some("stale") => 1,
863 _ => 2,
864 }
865 }
866 fn verifies_rank(entry: &VaultEntry) -> u8 {
867 match entry.verifies.as_deref() {
868 Some("yes") => 0,

Callers 1

sort_listingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected