Python package reference¶
API reference for the cloud_fpga_orchestrator package, generated directly from
the source with mkdocstrings. It stays in
sync with the code and grows richer as docstrings are added.
Domain models¶
The core state types shared across the service.
API request/response models¶
The Pydantic models that define the REST contract.
RunRequest ¶
Bases: BaseModel
Payload for POST /fpga/{id}/run.
Source code in _code/orchestrator/src/cloud_fpga_orchestrator/api/models.py
SessionResponse ¶
JobResponse ¶
Bases: BaseModel
Status and metadata for a single job.
Source code in _code/orchestrator/src/cloud_fpga_orchestrator/api/models.py
FPGASummary ¶
Bases: BaseModel
State snapshot for a single FPGA node.
Source code in _code/orchestrator/src/cloud_fpga_orchestrator/api/models.py
SubmitResponse ¶
Bases: BaseModel
Returned on a successful POST /fpga/{id}/submit (HTTP 202).
Source code in _code/orchestrator/src/cloud_fpga_orchestrator/api/models.py
RunResponse ¶
Bases: BaseModel
Returned on a successful POST /fpga/{id}/run (HTTP 202).
Source code in _code/orchestrator/src/cloud_fpga_orchestrator/api/models.py
RunResultResponse ¶
HealthResponse ¶
ErrorResponse ¶
Bases: BaseModel
Standard error envelope returned on all non-2xx responses.
Source code in _code/orchestrator/src/cloud_fpga_orchestrator/api/models.py
ExchangeRequest ¶
Bases: BaseModel
Payload for POST /auth/github/exchange.
Source code in _code/orchestrator/src/cloud_fpga_orchestrator/api/models.py
ExchangeResponse ¶
Bases: BaseModel
Returned on a successful GitHub token exchange.
Source code in _code/orchestrator/src/cloud_fpga_orchestrator/api/models.py
Application factory¶
lifespan
async
¶
Initialize resources on startup and clean up on shutdown.
create_app ¶
Create and configure the FastAPI application.