Expand description
Wire types and per-endpoint methods generated from canopy’s OpenAPI document.
Regenerate with just gen-api after changing the public API; the generated
source is committed, so a change to this surface appears in the change that
causes it.
Modules§
- error
- Error types.
Structs§
- Application
Entitlements - What one application on the asking machine may act on.
- Application
Entitlements Builder - Use builder syntax to set the inputs and finish with
build(). - Application
Report - One application within a push, as the reporter found it.
- Application
Report Builder - Use builder syntax to set the inputs and finish with
build(). - Application
Type - What an application is: the software and the role it plays, as a slug. The set is open — a report carrying a type Canopy does not know creates an application of that type, which simply carries no per-type capabilities.
- Artifact
- A downloadable artifact belonging to a release version: an installer, package, or other file published for a given type and platform.
- Artifact
Builder - Use builder syntax to set the inputs and finish with
build(). - BTree
Map BTreeMap- BTree
MapValue - Describes one configurable parameter that a replica of a restore intent accepts.
- BTree
MapValue Builder - Use builder syntax to set the inputs and finish with
build(). - Backup
Capabilities Args - Request body for registering the backup types a server can run.
- Backup
Capabilities Args Builder - Use builder syntax to set the inputs and finish with
build(). - Backup
Credentials Args - Request body for minting short-lived S3 credentials for a backup or restore run.
- Backup
Credentials Args Builder - Use builder syntax to set the inputs and finish with
build(). - Backup
Target - The backup storage target for the calling server’s group: where the backup repository lives and the passphrase to open it.
- Backup
Target Builder - Use builder syntax to set the inputs and finish with
build(). - Begin
Args - Request to start device enrollment against a machine.
- Begin
Args Builder - Use builder syntax to set the inputs and finish with
build(). - Begin
Response - A freshly-issued enrollment challenge to sign and return.
- Begin
Response Builder - Use builder syntax to set the inputs and finish with
build(). - Certificate
Response - Where a certificate request stands, and the chain once there is one.
- Certificate
Response Builder - Use builder syntax to set the inputs and finish with
build(). - Complete
Args - Request to complete device enrollment by presenting a signed challenge obtained from the start-enrollment endpoint.
- Complete
Args Builder - Use builder syntax to set the inputs and finish with
build(). - Complete
Response - Result of a successful enrollment.
- Complete
Response Builder - Use builder syntax to set the inputs and finish with
build(). - Credential
Process Output - Short-lived AWS credentials in the AWS
credential_processoutput format, so they can be consumed directly by AWS SDKs and tools. Field names use the exact casing (Version,AccessKeyId, …) that format requires. - Credential
Process Output Builder - Use builder syntax to set the inputs and finish with
build(). - Entitlements
- What a server is entitled to do with names, and what it already holds.
- Entitlements
Builder - Use builder syntax to set the inputs and finish with
build(). - Health
Check - One health-check result within a status push.
- Health
Check Builder - Use builder syntax to set the inputs and finish with
build(). - Held
Certificate - A certificate Canopy holds for the asking server, as the server needs to see it: enough to decide whether to renew, and nothing about anyone else.
- Held
Certificate Builder - Use builder syntax to set the inputs and finish with
build(). - Intent
Descriptor - One restore purpose a consumer advertises support for: the behaviours it opts into and the settings it accepts per replica.
- Intent
Descriptor Builder - Use builder syntax to set the inputs and finish with
build(). - Machine
Self Response - The calling identity, the box it is enrolled as, and what runs on that box.
- Machine
Self Response Builder - Use builder syntax to set the inputs and finish with
build(). - Migration
Args - How the target version’s migrations went against the restored replica.
- Migration
Args Builder - Use builder syntax to set the inputs and finish with
build(). - Migration
Timing Args - How long one migration took.
- Migration
Timing Args Builder - Use builder syntax to set the inputs and finish with
build(). - Problem
Details Schema - Standard error response body, returned for every non-2xx response.
- Problem
Details Schema Builder - Use builder syntax to set the inputs and finish with
build(). - Progress
Args - A progress sample from a run still in flight.
- Progress
Args Builder - Use builder syntax to set the inputs and finish with
build(). - Public
Server - A publicly-listed central server that a client can connect to.
- Public
Server Builder - Use builder syntax to set the inputs and finish with
build(). - Redaction
Args - How the masking manifest went against the restored replica.
- Redaction
Args Builder - Use builder syntax to set the inputs and finish with
build(). - Register
Name Args - The name a server should be reachable at, and where.
- Register
Name Args Builder - Use builder syntax to set the inputs and finish with
build(). - Registered
Name - What Canopy holds for a registered name.
- Registered
Name Builder - Use builder syntax to set the inputs and finish with
build(). - Report
Args - Report of a completed backup or restore run.
- Report
Args Builder - Use builder syntax to set the inputs and finish with
build(). - Request
Certificate Args - A request to certify a key for a name.
- Request
Certificate Args Builder - Use builder syntax to set the inputs and finish with
build(). - Restore
Capabilities Args - Request body for registering the restore intents a consumer device can satisfy.
- Restore
Capabilities Args Builder - Use builder syntax to set the inputs and finish with
build(). - Restore
Credentials - Read-only S3 credentials plus the repository passphrase for one group and backup type: everything needed to open the group’s backup repository and read a snapshot out of it.
- Restore
Credentials Args - Request body for minting read-only restore credentials.
- Restore
Credentials Args Builder - Use builder syntax to set the inputs and finish with
build(). - Restore
Credentials Builder - Use builder syntax to set the inputs and finish with
build(). - Self
Response - The calling device’s own identity, as assigned at enrollment.
- Self
Response Builder - Use builder syntax to set the inputs and finish with
build(). - Snippet
Response - A single named SQL snippet from the bestool snippet library.
- Snippet
Response Builder - Use builder syntax to set the inputs and finish with
build(). - Status
Payload - A status push: a server’s periodic heartbeat carrying its self-reported health.
- Status
Payload Builder - Use builder syntax to set the inputs and finish with
build(). - Status
Response - The status-push response: only the return-path instructions the device can act on. The stored status record is deliberately not echoed back — the device already has everything it sent.
- Status
Response Builder - Use builder syntax to set the inputs and finish with
build(). - TagMap
- Free-form key/value tags, as a JSON object whose values are all strings.
- Target
Report - One target’s material within a push: its health checks and its detail.
- Target
Report Builder - Use builder syntax to set the inputs and finish with
build(). - Target
Response - What Canopy answers about one target the push described.
- Target
Response Builder - Use builder syntax to set the inputs and finish with
build(). - UrlField
- A URL, given as a plain string. Any trailing slash is stripped when the value is returned.
- Verification
Args - Report of a restore attempt and the health of the resulting replica.
- Verification
Args Builder - Use builder syntax to set the inputs and finish with
build(). - Version
- A release version of the monitored software, with its publication status and changelog.
- Version
Builder - Use builder syntax to set the inputs and finish with
build(). - View
Version - A release version as returned by the version-listing endpoints: the version numbers, publication status, and changelog.
- View
Version Builder - Use builder syntax to set the inputs and finish with
build(). - Worklist
Entry - One replica the consumer device should currently maintain: an operator
declaration expanded against a single server, carrying the snapshot to
restore and the repository coordinates to find it. S3 credentials and the
repository passphrase are obtained separately via
POST /restore-credentials. - Worklist
Entry Builder - Use builder syntax to set the inputs and finish with
build().
Enums§
- Backup
Purpose - Why a backup credential was issued, or what a reported run was for.
Determines the access the credential grants: a
backupcredential can write new data but not delete existing data, while arestorecredential is read-only. - Check
Result - Outcome of a single health check reported in a server’s status update.
- Check
Severity - How a server should treat one of its healthchecks, distilled from canopy’s operator-side configuration (the policy catalog and the silences) into a three-level device-facing vocabulary.
- Param
Type - The data type of a restore-replica configuration parameter, which
determines how its value is validated.
durationandbytesvalues must be non-negative integers (a count of seconds and of bytes, respectively);integeraccepts any whole number, positive or negative;booleanis a JSON boolean;textis a JSON string. - RunOutcome
- Outcome of a reported backup or restore run.
- Server
Rank - The environment tier of a server, from
productiondown todev. - Version
Status - Publication status of a release version.
Constants§
- OPENAPI_
BLAK E3 - BLAKE3 digest of that document, so a document that changed without the version moving with it can be told from one that did not.
- OPENAPI_
VERSION - Version of the OpenAPI document this source was generated from, which is also this crate’s own version.