Expand description
The platform dimension (REQ-PLATFORM-001, DD-001).
A layer is one manifest for N platforms — the OCI index’s own mechanism, not a substitution language. Deposit stamps every entry with a target triple; install selects only entries for the host (or an explicit override). Entries WITHOUT a platform annotation are platform-independent — layers deposited before this dimension existed keep working, and a depositor that makes no platform claim gets no platform filtering. A fully-stamped layer with nothing for the host fails closed: a wrong-architecture binary never reaches the core.
Constants§
- ANN_
PLATFORM - Annotation carrying an entry’s target triple.
Functions§
- entry_
matches - Does an entry’s (optional) platform annotation admit this platform?
- host_
platform - The host’s target triple, in the same vocabulary deposits use.