Add local CAS pin metadata

This commit is contained in:
Eric Wendland 2026-05-16 16:36:35 +02:00
commit 00471bcec0
9 changed files with 169 additions and 16 deletions

View file

@ -31,6 +31,12 @@ pub enum ControlRequest {
CasHas {
hash: BlobHash,
},
CasPin {
hash: BlobHash,
},
CasUnpin {
hash: BlobHash,
},
CasList,
KeychainInit {
admin_key_path: Option<PathBuf>,
@ -114,6 +120,10 @@ pub enum ControlResponse {
hash: BlobHash,
present: bool,
},
CasPinned {
hash: BlobHash,
pinned: bool,
},
CasList {
blobs: Vec<CasBlob>,
},
@ -193,6 +203,7 @@ pub struct KeychainStatusResponse {
pub struct CasBlob {
pub hash: BlobHash,
pub size_bytes: u64,
pub pinned: bool,
}
#[derive(Debug, thiserror::Error)]