cmd/mstorectl/imagecmd: added os/arch/variant option to repo client

This commit is contained in:
2026-03-17 16:54:23 +02:00
parent 629f4a5fa6
commit 5e66b92400
3 changed files with 16 additions and 11 deletions
+4 -1
View File
@@ -28,6 +28,9 @@ type PullImageParams struct {
Imagepath string
Filepath string
UseGoogleClient bool
Arch string
OS string
Variant string
}
type PullImageResult struct {
@@ -68,7 +71,7 @@ func (util *ImageUtil) pullImage(common *CommonImageParams, params *PullImagePar
return res, err
}
imageDir := auxtool.MakeTmpFilename(params.Filepath)
err = load.Pull(ctx, ref.Raw(), imageDir, "", "")
err = load.Pull(ctx, ref.Raw(), imageDir, params.OS, params.Arch, params.Variant)
if err != nil {
return res, err
}