@Tags Container Image @Summary Delete image @Accept json @Param request body dto.BatchDelete true "request" @Success 200 @Security ApiKeyAuth @Security Timestamp @Router /containers/image/remove [post] @x-panel-log {"bodyKeys":["names"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"移除镜像 [names]","
(c *gin.Context)
| 144 | // @Router /containers/image/remove [post] |
| 145 | // @x-panel-log {"bodyKeys":["names"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"移除镜像 [names]","formatEN":"remove image [names]"} |
| 146 | func (b *BaseApi) ImageRemove(c *gin.Context) { |
| 147 | var req dto.BatchDelete |
| 148 | if err := helper.CheckBindAndValidate(&req, c); err != nil { |
| 149 | return |
| 150 | } |
| 151 | |
| 152 | if err := imageService.ImageRemove(req); err != nil { |
| 153 | helper.InternalServer(c, err) |
| 154 | return |
| 155 | } |
| 156 | |
| 157 | helper.Success(c) |
| 158 | } |
| 159 | |
| 160 | // @Tags Container Image |
| 161 | // @Summary Save image |
nothing calls this directly
no test coverage detected