image: fixed tags, catalog, push operation
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user