Skip to main content

Module store

Module store 

Source
Expand description

HttpStore: a passalong-server workspace as a Store.

Items have the bytes FsStore gives them, through store::format: the server keeps meta and the content as they are sent. In a sealed workspace both are sealed here, and everything read is opened and checked here; the server authenticates nothing about content.

Every write names the key the client believes the workspace is under (expectedKeyId), so the server refuses it atomically when that changed.

Structs§

HttpStore
A passalong-server workspace.

Enums§

Partition
Which of a workspace’s generations a store reads.

Constants§

MAX_RESUMES
How many times a download that broke off is resumed.

Functions§

store_error
The store error for a failed request: the key and rewrite codes as the encryption errors every backend gives, anything else in the server’s words.