Skip to main content

Crate passalong_https

Crate passalong_https 

Source
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.json defines 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::tls sets it up, the API key as a bearer token, an X-Request-Id on every request, and the retries of crate::error.
error
What a passalong-server answers when it refuses, and what this client does about it.
store
HttpStore: a passalong-server workspace as a Store.
tls
TLS to a passalong-server: the one public key a tls_pin names, 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 config names, with its API key.
open_https_store
Opens the workspace config names 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 https kind to registry.