#[non_exhaustive]pub enum Command {
Show 33 variants
Hello {
protocol: u32,
},
Up {
target: Target,
options: OpOptions,
lifetime_s: Option<u64>,
},
Down {
target: Target,
options: OpOptions,
},
Park {
target: Target,
options: OpOptions,
mode: Park,
},
Resume {
target: Target,
options: OpOptions,
},
Update {
target: Target,
options: OpOptions,
},
Attach {
target: Target,
options: OpOptions,
machine: String,
},
Retire {
target: Target,
options: OpOptions,
machine: String,
},
Package {
target: Target,
options: OpOptions,
machine: String,
output: PathBuf,
},
Provision {
target: Target,
options: OpOptions,
machine: Option<String>,
with: Option<String>,
},
Exec {
target: Target,
options: OpOptions,
machine: String,
argv: Vec<String>,
},
Status {
run: RunName,
target: Option<Target>,
options: OpOptions,
},
Variables {
target: Target,
},
List,
Record {
run: RunName,
},
Forget {
run: RunName,
},
Expired,
ConsoleCommand {
run: RunName,
target: Option<Target>,
machine: String,
user: Option<String>,
},
GraphicalConsole {
run: RunName,
target: Option<Target>,
options: OpOptions,
machine: String,
},
NativeConsole {
run: RunName,
target: Option<Target>,
options: OpOptions,
machine: String,
},
ServiceEndpoints {
run: RunName,
target: Option<Target>,
options: OpOptions,
},
Usage {
run: RunName,
target: Option<Target>,
options: OpOptions,
},
PublicKey,
Downloads,
RemoveDownloads {
which: DownloadsToRemove,
},
AdoptDownloads {
adopted: Vec<DownloadToAdopt>,
},
AddressBlocksInUse {
except: Option<RunName>,
docker_context: Option<String>,
},
Operations {
run: RunName,
limit: u32,
},
Cancel {
operation: OperationId,
},
Subscribe {
run: Option<RunName>,
after: Option<EventCursor>,
},
Unsubscribe,
Shutdown,
ShutdownIfIdle,
}Expand description
What a request asks of the service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Hello
Opens the conversation (must come first).
Up
Start the run (a parked run is resumed).
Fields
Down
Remove everything the run created.
Park
Stop the run, keeping what it created.
Fields
Resume
Start a parked run again.
Update
Bring the running run up to date with its project.
Attach
Bring a machine of the project that isn’t running into the running run.
Fields
Retire
Take a machine out of the running run.
Fields
Package
Save a machine of the running run as a box file (Vagrant’s package).
Fields
Provision
Run the set-up again on the running machines.
Fields
Exec
Runs a command in a machine of the run, with no terminal; its result says how it ended.
Fields
Status
The run’s status (not queued: it reads). target is needed for a run not recorded yet;
without it the run is reopened as recorded.
Fields
Variables
The input variables a Terraform folder declares (not queued: it reads the folder’s files, and runs nothing).
List
Every recorded run.
Record
One run’s record (not queued: it reads the store); none for a run never recorded.
Forget
Forgets a run’s record: what the run created is left as it is. Refused while an operation of the run is queued or running.
Expired
The recorded runs whose lifetime passed and that may still hold something: what a reaper
takes down (a down each, given the values and secrets the run needs).
ConsoleCommand
The command that opens an interactive console into a machine of a run (not queued: nothing runs), for the client to run in its own terminal.
Fields
GraphicalConsole
A running machine’s graphical console (not queued: it reads). Reached through an SSH
tunnel, the tunnel stays open for as long as the connection that asked: a client asks on a
connection of its own, closed when the viewer is done; the service writes
Reply::ConsoleClosed and closes it when the tunnel ends first.
Fields
NativeConsole
What opens a running machine in its hypervisor’s own app (not queued: it reads).
Fields
ServiceEndpoints
The service endpoints a run publishes, each where this computer reaches it: as the run gives it, or at a local forward through the run’s jump host, which the service keeps open (not queued: it reads).
Fields
Usage
What each running machine of a run uses now (CPU and memory), as its engine samples it once; none for a format whose tool reports no per-machine figure (not queued: it reads).
Fields
PublicKey
The public half of the runner’s SSH key, one line (the key is made when there is none): what the client authorizes where a run’s SSH goes.
Downloads
What the runs’ own downloads fetched and the home’s store records (the images a Compose
start’s pull pulled, the boxes a Vagrant up added), each with its size when it can be read
(not queued: it reads).
RemoveDownloads
Removes the recorded downloads which names, each on its own: one its tool refuses (in
use) is said in its outcome and kept, the others go on. Nothing the store doesn’t record is
removed (not queued).
Fields
which: DownloadsToRemoveAll, or those of the given ids.
AdoptDownloads
Adopts downloads fetched outside the runs (by an earlier program’s own record) into the home’s record, each one on this computer now as it was fetched: they are listed and removed like the runs’ own (not queued).
Fields
adopted: Vec<DownloadToAdopt>The downloads to adopt.
AddressBlocksInUse
The IPv4 address blocks the engine’s networks hold, but those of a run’s own networks: what a deployment’s networks must stay clear of (not queued).
Fields
Operations
The run’s latest operations, newest first.
Cancel
Cancels an operation: a queued one never begins, a running one is cut short (its tools stopped).
Fields
operation: OperationIdThe operation.
Subscribe
Turns the connection into a subscription: the events after after (every one the
service keeps when None), then the live ones, of one run or every run.
Fields
after: Option<EventCursor>Resumes after this cursor (a reconnecting client’s last).
Unsubscribe
Ends the connection’s subscription.
Shutdown
Stops the service: queued operations are dropped, running ones cancelled and their tools stopped, then it exits.
ShutdownIfIdle
Stops the service only when no operation is queued or running (Reply::Ok: it takes no
new one, and exits); else refused with Reply::Busy, and nothing changes. Every protocol
takes it, from a client of any protocol (see the module’s documentation).