Expand description
passalong-server storage backend for passalong: the https kind.
It is written from the server’s published API documents alone; the server is AGPL-3.0-or-later and no code of it is used here. Like the SSH backend, it is kept free of CLI dependencies so GUI and Android front-ends can reuse it.
Re-exports§
pub use admin::HttpEncryptionAdmin;pub use client::Client;pub use error::Code;pub use error::HttpsError;pub use error::Problem;pub use store::HttpStore;pub use store::Partition;pub use store::store_error;
Modules§
- admin
HttpEncryptionAdmin: changing a workspace’s encryption through the server’s API.- api
- The server’s JSON documents, as its
openapi.jsondefines them. Fields this client does not know are ignored, as the contract asks. Byte counts travel as strings, since item sizes are 64-bit. - client
- The HTTP client: TLS as
crate::tlssets it up, the API key as a bearer token, anX-Request-Idon every request, and the retries ofcrate::error. - error
- What a passalong-server answers when it refuses, and what this client does about it.
- store
HttpStore: a passalong-server workspace as aStore.- tls
- TLS to a passalong-server: the one public key a
tls_pinnames, or the operating system’s trust store. There is no setting that turns verification off.
Constants§
- VERSION
- Version of this crate, shared by every crate in the workspace.
Functions§
- claim
- What the server says about the workspace’s encryption.
- connect
- A client of the server
confignames, with its API key. - open_
https_ store - Opens the workspace
confignames for its device: sealed with the device’s key, or plaintext. A device holding a key never opens a workspace as plaintext, whatever the server says. - register
- Adds the
httpskind toregistry.