pub enum Request {
Show 24 variants
Add(AddRequest),
Remove(RemoveRequest),
Configure(ConfigureRequest),
Lifecycle(LifecycleRequest),
Upgrade(UpgradeRequest),
List,
Get {
service: String,
},
Diff {
service: String,
},
Backups {
service: String,
},
Revert {
service: String,
at: Option<String>,
},
Search {
query: Option<String>,
registry: Option<String>,
},
Registries,
AddRegistry {
name: String,
url: String,
},
RemoveRegistry {
name: String,
},
Doctor,
Backup {
service: String,
},
Restore {
service: String,
snapshot: String,
},
Snapshots {
service: String,
},
BackupStatus,
ConfigureBackup {
backend: BackupBackendSpec,
password: Option<String>,
},
SetBackupEnrolled {
service: String,
enabled: bool,
},
ServiceDef {
service: String,
registry: Option<String>,
},
ConfigureView {
service: String,
},
Reconcile {
services: Vec<String>,
dry_run: bool,
},
}Expand description
One request to the agent. Adjacently tagged so it maps straight onto a
JSON-RPC method + params: {"method":"add","params":{...}},
{"method":"list"}.
Variants§
Add(AddRequest)
Install and start a service.
Remove(RemoveRequest)
Remove a service (optionally purging its data).
Configure(ConfigureRequest)
Re-render an installed service with a changed integration set.
Lifecycle(LifecycleRequest)
Start or stop an installed service.
Upgrade(UpgradeRequest)
Upgrade an installed service to the registry’s current version.
List
List every service (installed + orphan) with live status.
Get
One service’s current view.
Diff
What an upgrade would change for a service (read-only).
Backups
The pre-upgrade snapshots available to revert to, newest first.
Revert
Restore a service from a pre-upgrade snapshot (latest if at is None).
Search
Search a registry for installable services (default registry if unset).
Registries
List the configured registries.
AddRegistry
Add a custom registry.
RemoveRegistry
Remove a custom registry.
Doctor
Run the diagnostics ryra-doctor runs.
Backup
Take a backup snapshot of a (backup-enabled) service.
Restore
Restore a service’s data from a restic snapshot (“latest” for newest).
Snapshots
List a service’s restic data snapshots, newest first (ryra backup list).
BackupStatus
The effective backup configuration + enrolled services
(ryra backup status).
ConfigureBackup
Point backups at a backend: init the restic repo and persist [backup]
(ryra backup configure). password is the restic key; when absent the
engine reuses the existing key or generates a fresh one.
SetBackupEnrolled
Opt a service in or out of backups.
ServiceDef
The installable env/group/choice schema for a registry service
(default registry if registry is unset).
ConfigureView
The configure view (schema + current selections + .env) for an
installed service.
Reconcile
Propagate the current global config into installed services
(ryra configure --apply). Empty services = every installed service
whose env would change; dry_run previews without writing/restarting.