@Tags Container Image @Summary Load image @Accept json @Param request body dto.ImageLoad true "request" @Success 200 @Security ApiKeyAuth @Security Timestamp @Router /containers/image/load [post] @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"从 [path] 加载镜像","format
(c *gin.Context)
| 213 | // @Router /containers/image/load [post] |
| 214 | // @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"从 [path] 加载镜像","formatEN":"load image from [path]"} |
| 215 | func (b *BaseApi) ImageLoad(c *gin.Context) { |
| 216 | var req dto.ImageLoad |
| 217 | if err := helper.CheckBindAndValidate(&req, c); err != nil { |
| 218 | return |
| 219 | } |
| 220 | |
| 221 | if err := imageService.ImageLoad(req); err != nil { |
| 222 | helper.InternalServer(c, err) |
| 223 | return |
| 224 | } |
| 225 | |
| 226 | helper.Success(c) |
| 227 | } |