cmd/mstorectl/imagecmd: added os/arch/variant option to repo client
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user