added minimal image checker
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user