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, SessionToken combines that state with service-specific fields, and crate::encryption::Cipher protects the serialized token before it is returned to the server.

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

Structs§

EncryptedSessionToken
Identifier for an in-progress resumable upload session.

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.