swarmctl: agent set-state declares an agent's wanted state
Wraps PUT /api/hives/{hive}/agents/{agent}/state, the route the swarm UI's
state menu uses. States come from swarm_wire::wanted::AgentState; destroyed
needs --yes.
Closes #6159
This commit is contained in:
parent
06b303aff2
commit
71d360c9d2
1 changed files with 187 additions and 1 deletions
|
|
@ -36,6 +36,8 @@ serde_norway = "0.9.42"
|
|||
sha2.workspace = true
|
||||
# The request and response bodies, shared with swarm-controller.
|
||||
swarm-controller-api.workspace = true
|
||||
# `AgentState`, the values `agent set-state` takes.
|
||||
swarm-wire.workspace = true
|
||||
tokio.workspace = true
|
||||
url.workspace = true
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue