flayer.profiles.static_site¶
flayer.profiles.static_site ¶
Prepare a bounded static HTTP page for an explicitly selected fresh Ubuntu guest.
StaticSiteError ¶
Bases: ContractError
The static site violates its bounded profile or prepared artifact contract.
StaticSiteProfile
dataclass
¶
StaticSiteProfile(identity: StackIdentity, zone_id: str, image_id: str, subnet_cidr: str, admin_username: str, admin_public_key: str, admin_source_cidrs: tuple[str, ...], http_source_cidrs: tuple[str, ...], title: str, body: str, cores: int = 2, memory_gib: int = 2, boot_disk_gib: int = 20, schema_version: int = 1, guest_contract: str = GUEST_CONTRACT)
Explicit Yandex placement and one escaped static page with separate SSH authority.
StaticSitePlan
dataclass
¶
StaticSitePlan(profile: StaticSiteProfile)
Immutable profile intent whose serialized plan binds an exact owned initialization.
StaticSitePreparation
dataclass
¶
StaticSitePreparation(server_directory: Path, plan_directory: Path)
Local bundle references for a prepared plan; deployment and readiness remain unverified.
ParseStaticSiteProfile ¶
ParseStaticSiteProfile(data: Mapping[str, object]) -> StaticSiteProfile
Decode a strict concrete profile without accepting commands or private credentials.
Source code in installed/flayer/profiles/static_site.py
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 | |
LoadStaticSiteProfile ¶
LoadStaticSiteProfile(path: str | Path) -> StaticSiteProfile
Read bounded regular UTF-8 TOML without following symlinks or blocking on special files.
Source code in installed/flayer/profiles/static_site.py
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 | |
CompileStaticSite ¶
CompileStaticSite(profile: StaticSiteProfile) -> StaticSitePlan
Validate composed names without invoking storage, lifecycle, or provider mutation.
Source code in installed/flayer/profiles/static_site.py
297 298 299 300 301 302 303 304 305 | |
BuildStaticSiteBundle ¶
BuildStaticSiteBundle(profile: StaticSiteProfile) -> ArtifactBundle
Create public initialization bytes without credentials or guest readiness claims.
Source code in installed/flayer/profiles/static_site.py
416 417 418 419 420 421 422 423 | |
RenderStaticSitePlan ¶
RenderStaticSitePlan(plan: StaticSitePlan, *, user_data_file: str | Path) -> str
Bind the existing six-resource lifecycle contract to verified owned initialization.
Source code in installed/flayer/profiles/static_site.py
426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 | |
PrepareStaticSite ¶
PrepareStaticSite(profile: StaticSiteProfile, *, artifact_root: str | Path) -> StaticSitePreparation
Publish exclusive owned bundles; preserve a verified plan after publication failure.
Source code in installed/flayer/profiles/static_site.py
531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 | |
Main ¶
Main(argv: Sequence[str] | None = None) -> int
Prepare bounded local artifacts only; never instantiate or invoke a cloud provider.
Source code in installed/flayer/profiles/static_site.py
572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 | |