@RestController @Feature(cls=DOCKER) @RequestMapping(value="/docker/container") public class DockerContainerController extends BaseServerController
NODE_ID, nodeService| Constructor and Description |
|---|
DockerContainerController(DockerInfoService dockerInfoService) |
| Modifier and Type | Method and Description |
|---|---|
String |
del(String id,
String containerId) |
String |
inspectContainer(String id,
String containerId) |
String |
list(String id) |
String |
restart(String id,
String containerId) |
String |
start(String id,
String containerId) |
String |
stats(String id,
String containerId) |
String |
stop(String id,
String containerId) |
String |
updateContainer(com.alibaba.fastjson.JSONObject jsonObject)
修改容器配置
|
checkCron, getNode, getUser, getUserByThreadLocal, getUserModel, removeAll, removeEmpty, resetInfo, resetInfo, tryGetNodecheckPathSafe, pathSafeclearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFilegetApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributespublic DockerContainerController(DockerInfoService dockerInfoService)
@PostMapping(value="list",
produces="application/json")
@Feature(method=LIST)
public String list(@ValidatorItem
String id)
throws Exception
Exception@GetMapping(value="remove",
produces="application/json")
@Feature(method=DEL)
public String del(@ValidatorItem
String id,
String containerId)
throws Exception
Exception@GetMapping(value="start",
produces="application/json")
@Feature(method=EXECUTE)
public String start(@ValidatorItem
String id,
String containerId)
throws Exception
Exception@GetMapping(value="stop",
produces="application/json")
@Feature(method=EXECUTE)
public String stop(@ValidatorItem
String id,
String containerId)
throws Exception
Exception@GetMapping(value="restart",
produces="application/json")
@Feature(method=EXECUTE)
public String restart(@ValidatorItem
String id,
String containerId)
throws Exception
Exception@GetMapping(value="stats",
produces="application/json")
@Feature(method=EXECUTE)
public String stats(@ValidatorItem
String id,
String containerId)
throws Exception
Exception@GetMapping(value="inspect-container",
produces="application/json")
@Feature(method=EXECUTE)
public String inspectContainer(@ValidatorItem
String id,
String containerId)
throws Exception
ExceptionCopyright © 2017–2022. All rights reserved.