Expand description
Minimal admin control-plane client.
Owned by eggress-admin (not eggress-cli) so the route-explain command
cannot silently reimplement the admin HTTP protocol inside a command
handler. The implementation is deliberately small and HTTP/1.1-only to
match the admin server contract: request construction, status parsing,
body extraction, transport errors, and response deserialization all live
here. Callers only validate user inputs, choose local vs remote
explanation, render output, and map errors to process outcomes.
Structs§
- Admin
Endpoint - Parsed admin endpoint: host without brackets, port, and absolute path.
Enums§
- Admin
Client Error - Errors from the admin route-explain client. Transport and protocol failures are typed so CLI handlers can map them without parsing strings.
Functions§
- parse_
admin_ url - Parse an
--adminURL into dial parts. - route_
explain - Explain a route through a live admin server.