Expand description
Instance (container/VM) CRUD, lifecycle, and snapshots.
Exec, console attach, and file push/pull are deliberately not
implemented here: each uses POST .../exec-style operations whose
metadata carries secrets for separate control/stdin/stdout WebSocket
connections - a materially different protocol from the generic
operations/events model the rest of this crate is built on. That’s
follow-up work for whenever a real consumer needs it, not a gap in this
epic.
Structs§
- Create
Instance Params - Parameters for
Client::create_instance.sourceis the raw Incus source-object JSON (e.g.{"type": "image", "fingerprint": "..."}) - kept untyped since Incus supports several distinct source shapes (image, copy, migration, none) that aren’t worth fully typing for v1. - Instance
- A container or virtual machine.
config/devicesstay untyped (serde_json::Value) - Incus’s instance config schema is large and mostly free-form key-value pairs, so fully typing it is out of scope for this crate.