Re-exports§
pub use reqwest;
Modules§
- registration
- Single, machine-bound, encrypted store for this host’s canopy enrollment.
- schema
- Wire types generated at build time from canopy’s OpenAPI document.
Structs§
- Canopy
Client - HTTP client with auth configured for talking to a canopy server.
- Container
Creds - Creds in the ECS container-credentials shape kopia’s minio-go provider polls
for: note
Token(notSessionToken), andExpirationas RFC3339Z. - Redacted
- Wraps a sensitive value so its
Debugoutput doesn’t leak the contents. - Restore
Capabilities Request - Body for
POST /restore-capabilities: the restore intents this consumer supports. - Restore
Credentials Request - Body for
POST /restore-credentials.
Enums§
- Target
Outcome - Result of
GET /backup-target: a live target, or the benign dormant state (the device is not yet authorised for backups —412/409).
Constants§
- CERT_
RENEW_ AFTER - How long to wait between scheduled cert renewals.
- DEFAULT_
CANOPY_ URL - TAILSCALE_
URL - Base URL for the tailscale-internal canopy endpoint.
Functions§
- client_
builder - A
reqwest::ClientBuildercarrying thebestooluser_agentforversion. - device_
identity - Build a short-lived self-signed client certificate from a P-256 device key
PEM and wrap it as a reqwest mTLS [
Identity]. - tailscale_
client - Probe the canopy tailnet endpoint, returning a client routed to it if reachable.
- user_
agent - Browser-style user-agent string, e.g.
bestool/1.2.3 (Linux 7.0.9 Arch Linux; x86_64).
Type Aliases§
- Client
Builder Factory - Factory producing the base
reqwest::ClientBuilderfor canopy’s clients.