@RestController @RequestMapping(value="/api/release") public class ReleaseController extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ReleaseController.ReleaseControllerLinksResource |
Constructor and Description |
---|
ReleaseController(ReleaseService releaseService,
SkipperStateMachineService skipperStateMachineService) |
Modifier and Type | Method and Description |
---|---|
org.springframework.cloud.skipper.domain.CancelResponse |
cancel(org.springframework.cloud.skipper.domain.CancelRequest cancelRequest) |
org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Release> |
delete(String releaseName) |
org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Release> |
deleteWithPackage(String releaseName) |
void |
handlePackageDeleteException() |
void |
handleReleaseNotFoundException() |
void |
handleSkipperException() |
org.springframework.hateoas.CollectionModel<org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Release>> |
list() |
org.springframework.hateoas.CollectionModel<org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Release>> |
list(String releaseName) |
org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.LogInfo> |
log(String name) |
org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.LogInfo> |
log(String name,
String appName) |
org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Manifest> |
manifest(String name) |
org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Manifest> |
manifest(String name,
Integer version) |
ReleaseController.ReleaseControllerLinksResource |
resourceLinks() |
org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Release> |
rollback(org.springframework.cloud.skipper.domain.RollbackRequest rollbackRequest) |
org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Release> |
rollbackWithNamedVersion(String releaseName,
int rollbackVersion)
Deprecated.
|
org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Release> |
scale(String name,
org.springframework.cloud.skipper.domain.ScaleRequest scaleRequest) |
reactor.core.publisher.Mono<Map<String,Map<String,org.springframework.cloud.deployer.spi.app.DeploymentState>>> |
states(String[] names) |
org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Info> |
status(String name) |
org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Info> |
status(String name,
Integer version) |
reactor.core.publisher.Mono<Map<String,org.springframework.cloud.skipper.domain.Info>> |
statuses(String[] names) |
org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Release> |
upgrade(org.springframework.cloud.skipper.domain.UpgradeRequest upgradeRequest) |
public ReleaseController(ReleaseService releaseService, SkipperStateMachineService skipperStateMachineService)
@RequestMapping(method=GET) public ReleaseController.ReleaseControllerLinksResource resourceLinks()
@RequestMapping(path="/statuses", method=GET) @ResponseStatus(value=OK) public reactor.core.publisher.Mono<Map<String,org.springframework.cloud.skipper.domain.Info>> statuses(@RequestParam(value="names") String[] names)
@RequestMapping(path="/states", method=GET) @ResponseStatus(value=OK) public reactor.core.publisher.Mono<Map<String,Map<String,org.springframework.cloud.deployer.spi.app.DeploymentState>>> states(@RequestParam(value="names") String[] names)
@RequestMapping(path="/status/{name}", method=GET) @ResponseStatus(value=OK) public org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Info> status(@PathVariable(value="name") String name)
@RequestMapping(path="/status/{name}/{version}", method=GET) @ResponseStatus(value=OK) public org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Info> status(@PathVariable(value="name") String name, @PathVariable(value="version") Integer version)
@RequestMapping(path="/logs/{name}", method=GET) @ResponseStatus(value=OK) public org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.LogInfo> log(@PathVariable(value="name") String name)
@RequestMapping(path="/logs/{name}/{appName}", method=GET) @ResponseStatus(value=OK) public org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.LogInfo> log(@PathVariable(value="name") String name, @PathVariable(value="appName") String appName)
@RequestMapping(path="/manifest/{name}", method=GET) @ResponseStatus(value=OK) public org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Manifest> manifest(@PathVariable(value="name") String name)
@RequestMapping(path="/manifest/{name}/{version}", method=GET) @ResponseStatus(value=OK) public org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Manifest> manifest(@PathVariable(value="name") String name, @PathVariable(value="version") Integer version)
@RequestMapping(path="/scale/{name}", method=POST) @ResponseStatus(value=CREATED) public org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Release> scale(@PathVariable(value="name") String name, @RequestBody org.springframework.cloud.skipper.domain.ScaleRequest scaleRequest)
@RequestMapping(path="/upgrade", method=POST) @ResponseStatus(value=CREATED) public org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Release> upgrade(@RequestBody org.springframework.cloud.skipper.domain.UpgradeRequest upgradeRequest)
@RequestMapping(path="/rollback", method=POST) @ResponseStatus(value=CREATED) public org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Release> rollback(@RequestBody org.springframework.cloud.skipper.domain.RollbackRequest rollbackRequest)
@RequestMapping(path="/rollback/{name}/{version}", method=POST) @ResponseStatus(value=CREATED) @Deprecated public org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Release> rollbackWithNamedVersion(@PathVariable(value="name") String releaseName, @PathVariable(value="version") int rollbackVersion)
@RequestMapping(path="/{name}", method=DELETE) @ResponseStatus(value=OK) public org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Release> delete(@PathVariable(value="name") String releaseName)
@RequestMapping(path="/{name}/package", method=DELETE) @ResponseStatus(value=OK) public org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Release> deleteWithPackage(@PathVariable(value="name") String releaseName)
@RequestMapping(path="/cancel", method=POST) @ResponseStatus(value=OK) public org.springframework.cloud.skipper.domain.CancelResponse cancel(@RequestBody org.springframework.cloud.skipper.domain.CancelRequest cancelRequest)
@RequestMapping(path="/list", method=GET) @ResponseStatus(value=OK) public org.springframework.hateoas.CollectionModel<org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Release>> list()
@RequestMapping(path="/list/{name}", method=GET) @ResponseStatus(value=OK) public org.springframework.hateoas.CollectionModel<org.springframework.hateoas.EntityModel<org.springframework.cloud.skipper.domain.Release>> list(@PathVariable(value="name") String releaseName)
@ResponseStatus(value=NOT_FOUND, reason="Release not found") @ExceptionHandler(value=org.springframework.cloud.skipper.ReleaseNotFoundException.class) public void handleReleaseNotFoundException()
@ResponseStatus(value=CONFLICT, reason="Package deletion error") @ExceptionHandler(value=org.springframework.cloud.skipper.PackageDeleteException.class) public void handlePackageDeleteException()
@ResponseStatus(value=CONFLICT, reason="Skipper server exception") @ExceptionHandler(value=org.springframework.cloud.skipper.SkipperException.class) public void handleSkipperException()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.