pub enum Request {
Show 21 variants
TemplateInit(TemplateInitArgs),
TemplateRefresh {
name: String,
path: Option<String>,
layered: bool,
},
TemplateSet(TemplateSetArgs),
TemplateList,
TemplateHistory {
name: String,
},
TemplateRollback {
name: String,
to: Option<u32>,
},
TemplateUpgrade {
name: String,
to: u32,
as_name: Option<String>,
},
CloneCreate(CloneCreateArgs),
CloneList,
CloneDestroy {
id_or_name: String,
force: bool,
forget: bool,
},
ClonePromote {
id_or_name: String,
template: Option<String>,
},
CloneWake {
id_or_name: String,
},
CloneDiff {
id_or_name: String,
table: Option<String>,
limit: Option<u32>,
parent_pid: Option<i32>,
},
PendingRestores,
PendingRestoreDone {
id: i64,
},
Gc,
Status,
Usage,
ConfigReload,
Events {
filter: EventFilter,
follow: bool,
},
Shutdown,
}Variants§
TemplateInit(TemplateInitArgs)
TemplateRefresh
Fields
TemplateSet(TemplateSetArgs)
TemplateList
TemplateHistory
TemplateRollback
Points the template at generation to, or the newest one older than the current.
TemplateUpgrade
Moves the template to Postgres to with pg_upgrade: a new generation, or with as_name
a new template (same database and settings, schedule off).
CloneCreate(CloneCreateArgs)
CloneList
CloneDestroy
Fields
ClonePromote
Makes a running clone the newest generation of its template, or of template.
CloneWake
Starts a sleeping clone (a no-op for a running one); answered with Response::Clone.
CloneDiff
What a clone changed against the template generation it came from; answered with
Response::Diff. A parent_pid limits it to a clone of that MCP session.
Fields
PendingRestores
.env restores the daemon could not finish.
PendingRestoreDone
Gc
Status
Usage
Resource use of all clones against the limits.
ConfigReload
Re-read config.toml and the environment; later requests use the new settings.
Events
Past events matching filter, oldest first. With follow the daemon keeps the connection
open after that list and writes one Response::Event line per new event.