Skip to main content

Module client

Module client 

Source
Expand description

The control plane’s side of the wire to an agent: HTTPS with its client certificate, one request per connection (the agent’s server closes after answering), and the terminal websocket.

Structs§

AgentClient
How the control plane reaches one agent.
Answer
An answer: status, headers, body.

Functions§

parse_answer
HTTP/1.1 <status>, headers, and the body (to Content-Length if given).
tool_answer
A REST tool answer: {"result"} on 200, else {"error","message","data"}.