Skip to main content

Module resumable

Module resumable 

Source
Expand description

Types supporting authenticated Resumable Upload Session tokens.

Storage backends represent their opaque upload state as a BackendToken. At the service boundary, Session combines that state with service-specific fields, and crate::encryption::Cipher protects the serialized token before it is returned to the server. After authentication, the service passes the structured Session to the backend.

Storage backend       | objectstore-service                          | objectstore-server             |
BackendToken <------->| Session --------------- Cipher ------------->| EncryptedSessionToken          |
opaque backend state  | { ObjectId, upload_length, BackendToken }    | b64url encoded opaque envelope |

Structs§

EncryptedSessionToken
Identifier for an in-progress resumable upload session.
Session
Identifies a resumable upload and carries its declared length.

Enums§

UploadOffset
The value of the HEADER_UPLOAD_OFFSET request header.
UploadProgress
How far a resumable upload has progressed.

Type Aliases§

BackendToken
Opaque session state encoded and decoded by a storage backend.