added minimal image checker

This commit is contained in:
2026-03-30 23:12:02 +02:00
parent 856ea529a7
commit 1c894e190d
12 changed files with 341 additions and 16 deletions
+10
View File
@@ -20,6 +20,7 @@ type ImageUtil struct {
pullImageParams PullImageParams
pushImageParams PushImageParams
deleteImageParams DeleteImageParams
checkImagesParams CheckImagesParams
commonImageParams CommonImageParams
}
@@ -107,6 +108,15 @@ func (util *ImageUtil) CreateImageCmds() *cobra.Command {
}
subCmd.AddCommand(catalogImagesCmd)
// CheckFiles
var checkImagesCmd = &cobra.Command{
Use: "check [user:pass@]hostname[:port][/path:tag]",
Short: "Check containet image",
Args: cobra.ExactArgs(1),
Run: util.CheckImages,
}
subCmd.AddCommand(checkImagesCmd)
return subCmd
}