fanet library
fa_network REST client entry point (pure Dart).
Join links, payload models, and the injectable-HTTP client used by the CLI network mode to join an fa_network network and mint DAP sessions.
Classes
- FanetAgentEnrollment
-
An agent enrolled via
POST /api/networks/{id}/agents/enroll. - FanetAgentName
-
Validation for fa_network agent names, matching the server-side rule
(
^[a-z0-9][a-z0-9-]{2,63}$— 3–64 chars, lowercase letters, digits and hyphens, must start with a letter or digit). Reused by the UI. - FanetClient
- REST client for a fa_network server.
- FanetJoinLink
- A parsed fa_network join link.
- FanetJoinResult
-
Result of
POST /api/networks/{id}/join: the bearer token used for all authenticated fa_network calls.
Exceptions / Errors
- FanetApiException
- The fa_network server answered with an unexpected HTTP status.
- FanetException
-
Base class for fa_network REST failures. Sealed so consumers can
exhaustively switch on the failure kind (shaped after
AgentHarnessExceptioninlib/src/exceptions.dart).