Initial commit: VMware vSphere API simulator scaffold.
Add the FastAPI app, PostgreSQL migrations, Docker/Helm packaging, API contracts, docs, client examples, and the unit/integration/compatibility test suite for local client and tooling labs without a real vCenter.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
"""Static web console assets."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
_WEB_ROOT = Path(__file__).parent
|
||||
_CONSOLE_HTML = _WEB_ROOT / "index.html"
|
||||
_COMPACT_CONSOLE_HTML = _WEB_ROOT / "console.html"
|
||||
|
||||
|
||||
def console_html() -> str:
|
||||
"""Return the latest lab UI markup from disk."""
|
||||
|
||||
return _CONSOLE_HTML.read_text(encoding="utf-8")
|
||||
|
||||
|
||||
def compact_console_html() -> str:
|
||||
"""Return the compact vSphere session console markup."""
|
||||
|
||||
return _COMPACT_CONSOLE_HTML.read_text(encoding="utf-8")
|
||||
Reference in New Issue
Block a user