WorkspaceController.java 文件源码

java
阅读 49 收藏 0 点赞 0 评论 0

项目:che-starter 作者:
@ApiOperation(value = "Start an existing workspace. Stop all other workspaces (only one workspace can be running at a time)")
@PatchMapping("/workspace/oso/{name}")
public Workspace startExistingOnOpenShift(@PathVariable String name, @RequestParam String masterUrl,
        @RequestParam String namespace,
        @ApiParam(value = "OpenShift token", required = true) @RequestHeader("Authorization") String openShiftToken)
        throws IOException, URISyntaxException, RouteNotFoundException, StackNotFoundException,
        GitHubOAthTokenException, ProjectCreationException, WorkspaceNotFound {

    String cheServerURL = openShiftClientWrapper.getCheServerUrl(masterUrl, namespace, openShiftToken, null);
    return workspaceClient.startWorkspace(cheServerURL, name, masterUrl, namespace, openShiftToken, null);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号