mountOS Admin SDK for Rust
Async Rust SDK for the mountOS provider API, built on reqwest/tokio with
ED25519 JWT authentication.
Install
Requires Rust 1.85+ (edition 2024). TLS uses rustls with the OS trust store,
so self-hosted appserv behind a private/corporate CA works out of the box.
Usage
use ;
async
Resource accessors map to client.<resource> in snake_case (client.volume_fork_trees,
client.region_audit_logs, ...). Methods are async and take &self.
Error Handling
use Error;
match client.accounts.get.await
Auth
private_key is a base64-encoded ED25519 key — a 32-byte seed or a 64-byte
seed+public-key. JWT tokens are signed locally and cached for ~55 minutes (1h
TTL with a 5-minute refresh margin); the cache is Mutex-guarded and never held
across an .await.
Pass dashboard_user in Config to sign an X-MountOS-Dashboard-User header
into every request for operator-scoped access.
Reference
Full API reference: docs/rust.md. Generated from api.yaml; see also the language-neutral api.md.
License
Apache-2.0