@RestController @Feature(cls=DOCKER_SWARM) @RequestMapping(value="/docker-swarm-service") public class DockerSwarmServiceController extends BaseServerController
NODE_ID, nodeService| Constructor and Description |
|---|
DockerSwarmServiceController(DockerInfoService dockerInfoService) |
| Modifier and Type | Method and Description |
|---|---|
cn.jiangzeyin.common.JsonMessage<List<com.alibaba.fastjson.JSONObject>> |
del(String id,
String serviceId) |
cn.jiangzeyin.common.JsonMessage<List<com.alibaba.fastjson.JSONObject>> |
edit(com.alibaba.fastjson.JSONObject jsonObject) |
String |
getNowLog(String id,
int line)
获取拉取的日志
|
cn.jiangzeyin.common.JsonMessage<List<com.alibaba.fastjson.JSONObject>> |
list(String id,
String serviceId,
String serviceName) |
String |
pullImage(String id,
String type,
String dataId) |
cn.jiangzeyin.common.JsonMessage<List<com.alibaba.fastjson.JSONObject>> |
taskList(String id,
String serviceId,
String taskId,
String taskName,
String taskNode,
String taskState) |
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 DockerSwarmServiceController(DockerInfoService dockerInfoService)
@PostMapping(value="list",
produces="application/json")
@Feature(method=LIST)
public cn.jiangzeyin.common.JsonMessage<List<com.alibaba.fastjson.JSONObject>> list(@ValidatorItem
String id,
String serviceId,
String serviceName)
throws Exception
Exception@PostMapping(value="task-list",
produces="application/json")
@Feature(method=LIST)
public cn.jiangzeyin.common.JsonMessage<List<com.alibaba.fastjson.JSONObject>> taskList(@ValidatorItem
String id,
String serviceId,
String taskId,
String taskName,
String taskNode,
String taskState)
throws Exception
Exception@GetMapping(value="del",
produces="application/json")
@Feature(method=DEL)
public cn.jiangzeyin.common.JsonMessage<List<com.alibaba.fastjson.JSONObject>> del(@ValidatorItem
String id,
@ValidatorItem
String serviceId)
throws Exception
Exception@PostMapping(value="edit",
produces="application/json")
@Feature(method=EDIT)
public cn.jiangzeyin.common.JsonMessage<List<com.alibaba.fastjson.JSONObject>> edit(@RequestBody
com.alibaba.fastjson.JSONObject jsonObject)
throws Exception
Exception@GetMapping(value="start-log",
produces="application/json")
@Feature(method=EXECUTE)
public String pullImage(@ValidatorItem
String id,
@ValidatorItem
String type,
@ValidatorItem
String dataId)
throws Exception
Exception@GetMapping(value="pull-log",
produces="application/json")
@Feature(method=LIST)
public String getNowLog(@ValidatorItem(value=NOT_BLANK,msg="\u6ca1\u6709\u6570\u636e")
String id,
@ValidatorItem(value=POSITIVE_INTEGER,msg="line")
int line)
id - idline - 需要获取的行号Copyright © 2017–2022. All rights reserved.