Files
loader/_docs/02_document/diagrams/components.md
T
Oleksandr Bezdieniezhnykh 8f7deb3fca Add E2E tests, fix bugs
Made-with: Cursor
2026-04-13 05:17:48 +03:00

58 lines
1.8 KiB
Markdown

# Component Relationship Diagram
```mermaid
graph TD
subgraph "04 — HTTP API"
main["main.py<br/>(FastAPI endpoints)"]
end
subgraph "03 — Resource Management"
api_client["api_client<br/>(ApiClient)"]
cdn_manager["cdn_manager<br/>(CDNManager)"]
binary_split["binary_split<br/>(archive decrypt + docker load)"]
end
subgraph "02 — Security"
security["security<br/>(AES-256-CBC, key derivation)"]
hardware_service["hardware_service<br/>(HW fingerprint)"]
end
subgraph "01 — Core Models"
constants["constants<br/>(config + logging)"]
credentials["credentials<br/>(Credentials)"]
user["user<br/>(User, RoleEnum)"]
unlock_state["unlock_state<br/>(UnlockState enum)"]
end
main --> api_client
main --> binary_split
main --> unlock_state
api_client --> cdn_manager
api_client --> security
api_client --> hardware_service
api_client --> constants
api_client --> credentials
api_client --> user
security --> credentials
hardware_service --> constants
cdn_manager --> constants
```
## Component Dependency Summary
| Component | Depends On | Depended On By |
|-------------------------|--------------------------------|------------------------|
| 01 Core Models | — | 02, 03, 04 |
| 02 Security | 01 Core Models | 03 |
| 03 Resource Management | 01 Core Models, 02 Security | 04 |
| 04 HTTP API | 01 Core Models, 03 Resource Mgmt | — (entry point) |
## Implementation Order
```
01 Core Models → 02 Security → 03 Resource Management → 04 HTTP API
```