Documentation
¶
Overview ¶
Package platform normalizes and matches OCI platform strings ("linux/amd64"). It is the single vocabulary for node arch reporting (T-87) and arch-aware placement (T-88): nodes report Local(), user input goes through Normalize(), and the scheduler filters with Supports().
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Local ¶
func Local() string
Local is the platform string of the running binary, e.g. "linux/amd64".
func Normalize ¶
Normalize lowercases and validates an "os/arch" platform string, mapping common arch aliases (x86_64→amd64, aarch64→arm64, arm64/v8→arm64). It returns an error for anything that is not a recognizable OCI platform.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.