Transfer: Push: Enable to specify platforms

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
This commit is contained in:
Kohei Tokunaga
2024-06-04 09:48:17 +09:00
parent 21c244d436
commit 5611fdd4af
4 changed files with 22 additions and 16 deletions

View File

@@ -100,6 +100,11 @@ type ImageUnpacker interface {
UnpackPlatforms() []UnpackConfiguration
}
// ImagePlatformsGetter is type which returns configured platforms.
type ImagePlatformsGetter interface {
Platforms() []ocispec.Platform
}
// UnpackConfiguration specifies the platform and snapshotter to use for resolving
// the unpack Platform, if snapshotter is not specified the platform default will
// be used.