Add prototype encrypted CAS blobs
This commit is contained in:
parent
6e04e786c2
commit
533ffc8c2a
8 changed files with 382 additions and 6 deletions
|
|
@ -45,10 +45,19 @@ pub enum ControlRequest {
|
|||
CasAdd {
|
||||
path: PathBuf,
|
||||
},
|
||||
CasAddPrivate {
|
||||
resource: String,
|
||||
path: PathBuf,
|
||||
},
|
||||
CasGet {
|
||||
hash: BlobHash,
|
||||
out: PathBuf,
|
||||
},
|
||||
CasGetPrivate {
|
||||
resource: String,
|
||||
hash: BlobHash,
|
||||
out: PathBuf,
|
||||
},
|
||||
CasFetch {
|
||||
node: String,
|
||||
hash: BlobHash,
|
||||
|
|
@ -386,11 +395,27 @@ pub enum ControlResponse {
|
|||
hash: BlobHash,
|
||||
size_bytes: u64,
|
||||
},
|
||||
CasPrivateAdded {
|
||||
resource: String,
|
||||
epoch: u64,
|
||||
plaintext_hash: BlobHash,
|
||||
encrypted_hash: BlobHash,
|
||||
size_bytes: u64,
|
||||
note: String,
|
||||
},
|
||||
CasGot {
|
||||
hash: BlobHash,
|
||||
out: PathBuf,
|
||||
size_bytes: u64,
|
||||
},
|
||||
CasPrivateGot {
|
||||
resource: String,
|
||||
hash: BlobHash,
|
||||
plaintext_hash: BlobHash,
|
||||
out: PathBuf,
|
||||
size_bytes: u64,
|
||||
note: String,
|
||||
},
|
||||
CasFetched {
|
||||
peer_node_id: String,
|
||||
peer_agent_id: String,
|
||||
|
|
|
|||
Loading…
Reference in a new issue