image: fixed tags, catalog, push operation

This commit is contained in:
2026-03-11 21:02:10 +02:00
parent a064d942e7
commit 0d67944966
9 changed files with 25 additions and 18 deletions
+4 -3
View File
@@ -15,6 +15,7 @@ import (
"github.com/spf13/cobra"
"mstore/pkg/descr"
"mstore/pkg/repocli"
)
@@ -24,7 +25,7 @@ type ImageTagsParams struct {
}
type ImageTagsResult struct {
ImageTags []string `json:"imageTags"`
Tags *descr.Tags `json:"imageTags"`
}
func (util *ImageUtil) ImageTags(cmd *cobra.Command, args []string) {
@@ -36,7 +37,7 @@ func (util *ImageUtil) ImageTags(cmd *cobra.Command, args []string) {
func (util *ImageUtil) imageTags(common *CommonImageParams, params *ImageTagsParams) (*ImageTagsResult, error) {
var err error
res := &ImageTagsResult{
ImageTags: make([]string, 0),
Tags: &descr.Tags{},
}
timeout := time.Duration(common.Timeout) * time.Second
@@ -52,6 +53,6 @@ func (util *ImageUtil) imageTags(common *CommonImageParams, params *ImageTagsPar
if err != nil {
return res, err
}
res.ImageTags = opres
res.Tags = opres
return res, err
}