IndexBuilder¶
ocx_mirror_sdk.index.IndexBuilder
¶
Build a url_index JSON document with type-safe version entries.
Source code in src/ocx_mirror_sdk/index.py
add_version
¶
Add a version with its assets.
| PARAMETER | DESCRIPTION |
|---|---|
version
|
Semver version string (e.g., "22.15.0").
TYPE:
|
assets
|
Map of asset filename to download URL.
TYPE:
|
prerelease
|
Whether this is a pre-release.
TYPE:
|
Source code in src/ocx_mirror_sdk/index.py
build
¶
Return the constructed :class:RemoteIndex.
The returned object holds a snapshot copy of the builder's state.
Mutating the builder after :meth:build does not affect previously
returned indexes, and vice versa.
Source code in src/ocx_mirror_sdk/index.py
emit
¶
Serialize to JSON and write to the given file (default: stdout).