Skip to main content

Module client

Module client 

Source
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§

AdminEndpoint
Parsed admin endpoint: host without brackets, port, and absolute path.

Enums§

AdminClientError
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 --admin URL into dial parts.
route_explain
Explain a route through a live admin server.