Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateManifestList ¶
func CreateManifestList(targetRef string, images []PlatformImage) error
CreateManifestList builds an OCI image index (manifest list) from the given platform images and pushes it to targetRef. It uses mutate.AppendManifests and remote.WriteIndex (same approach as crane index append), which pushes all child image manifests and layers before pushing the index itself.
func CreateManifestListFromRefs ¶
func CreateManifestListFromRefs(targetRef string, refs []PlatformRef) error
CreateManifestListFromRefs builds an OCI image index from images that already exist in the registry. It fetches only the descriptors (no layers) and creates a manifest list pointing to them.
Types ¶
type PlatformImage ¶
PlatformImage pairs a v1.Image (loaded from a local OCI tar) with its target platform string.
type PlatformRef ¶
type PlatformRef struct {
Ref string // e.g. "registry.example.com/app:v1.linux-amd64.42"
Platform string // e.g. "linux/amd64"
}
PlatformRef pairs a registry reference with its target platform.
Click to show internal directories.
Click to hide internal directories.