Add durable manifest-rooted result inventories
This commit is contained in:
parent
be651d559c
commit
14988e7632
1 changed files with 1152 additions and 0 deletions
|
|
@ -258,6 +258,19 @@ impl TargetStore {
|
|||
})
|
||||
}
|
||||
|
||||
/// Stream and independently hash an exact identity without buffering it.
|
||||
pub async fn verify_exact(
|
||||
&self,
|
||||
identity: &ObjectIdentity,
|
||||
) -> Result<ObjectMetadata, TargetError> {
|
||||
let (content_sha256, size) = self.hash_exact(identity).await?;
|
||||
Ok(ObjectMetadata {
|
||||
identity: identity.clone(),
|
||||
content_sha256: Some(content_sha256),
|
||||
size,
|
||||
})
|
||||
}
|
||||
|
||||
/// Issue a time-limited URL bound to one exact object identity.
|
||||
pub async fn presign_read(
|
||||
&self,
|
||||
|
|
|
|||
Loading…
Reference in a new issue