pub struct FileUpload {Show 13 fields
pub id: i64,
pub location: FileLocation,
pub size: u64,
pub content_hash: ContentHash,
pub files: Vec<FileId>,
pub queued_at: SystemTime,
pub retry: Option<RetryWait>,
pub of: MoveId,
pub stored: bool,
pub holds: Option<u64>,
pub session: Option<SecretBytes>,
pub progress: Option<UploadProgress>,
pub bytes_total: u64,
}Expand description
One durable upload of one stored object; its plaintext chunk hashes are
owned child rows. The location carries the path and key its staging
fixed. Failures live in _coven_pending under the object’s subject, not
here.
Fields§
§id: i64Local queue identity, stable across retries.
location: FileLocationWhere the bytes go, with their key, fixed by the staging write.
size: u64The plaintext size.
content_hash: ContentHashThe content hash of the bytes, from their first read.
files: Vec<FileId>The files the upload’s completion switches to the cloud: the one its write staged, and each a move gave its rows over the same bytes.
queued_at: SystemTimeWhen this device queued the file.
retry: Option<RetryWait>The persisted automatic retry wait, if the last attempt armed one.
of: MoveIdThe move it belongs to, whose files switch to the cloud together.
stored: boolWhether its bytes are stored: it waits for the rest of its move.
holds: Option<u64>For a bound upload, the first write it holds back: the write that
staged its file, or the first write another bound upload queued then
held. That write and every later one of this device wait while a file
waits for the upload (§17.4). None for a trailing upload.
session: Option<SecretBytes>Opaque provider session, interpreted only by storage. It records each provider-confirmed part before progress reports it.
progress: Option<UploadProgress>The bytes the session records as confirmed, written with it; None
while the upload has no session, as one sent in one request never does.
bytes_total: u64The whole encrypted size the upload sends, in one request or in parts, which the file’s size fixes: known before any attempt starts.