@ShellComponent public class SkipperCommands extends AbstractSkipperCommand
skipperClient| Constructor and Description |
|---|
SkipperCommands(SkipperClient skipperClient) |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.cloud.deployer.spi.app.DeploymentState |
aggregateState(List<org.springframework.cloud.deployer.spi.app.DeploymentState> states)
Aggregate the set of app states into a single state for a stream.
|
String |
delete(String releaseName) |
org.springframework.shell.table.Table |
history(String releaseName,
String max) |
String |
install(String packageName,
String packageVersion,
File file,
String properties,
String releaseName,
String platformName) |
org.springframework.shell.table.Table |
list(String releaseName) |
String |
rollback(String releaseName,
int releaseVersion) |
Object |
search(String name,
boolean details) |
Object |
status(String releaseName,
Integer releaseVersion) |
Object |
upgrade(String releaseName,
String packageName,
String packageVersion,
File file,
String properties) |
String |
upload(String path,
String repoName) |
@Autowired public SkipperCommands(SkipperClient skipperClient)
public static org.springframework.cloud.deployer.spi.app.DeploymentState aggregateState(List<org.springframework.cloud.deployer.spi.app.DeploymentState> states)
states - set of states for apps of a stream@ShellMethod(key="search",
value="Search for the packages.")
public Object search(@ShellOption(help="wildcard expression to search for the package name",defaultValue="__NULL__")
String name,
@ShellOption(help="boolean to set for more detailed package metadata")
boolean details)
throws Exception
Exception@ShellMethod(key="install",
value="Install a package.")
public String install(@ShellOption(help="name of the package to install")
String packageName,
@ShellOption(help="version of the package to install, if not specified latest version will be used",defaultValue="__NULL__")
String packageVersion,
@ShellOption(help="specify values in a YAML file",defaultValue="__NULL__")
File file,
@ShellOption(help="the comma separated set of properties to override during install",defaultValue="__NULL__")
String properties,
@ShellOption(help="the release name to use")
String releaseName,
@ShellOption(help="the platform name to use",defaultValue="default")
String platformName)
throws IOException
IOException@ShellMethod(key="upgrade",
value="Upgrade a release.")
public Object upgrade(@ShellOption(help="the name of the release to upgrade")
String releaseName,
@ShellOption(help="the name of the package to use for the upgrade")
String packageName,
@ShellOption(help="the version of the package to use for the upgrade, if not specified latest version will be used",defaultValue="__NULL__")
String packageVersion,
@ShellOption(help="specify values in a YAML file",defaultValue="__NULL__")
File file,
@ShellOption(help="the comma separated set of properties to override during upgrade",defaultValue="__NULL__")
String properties)
throws IOException
IOException@ShellMethod(key="rollback",
value="Rollback the release to a previous or a specific release.")
public String rollback(@ShellOption(help="the name of the release to rollback")
String releaseName,
@ShellOption(help="the specific release version to rollback to. Not specifying the value rolls back to the previous release.",defaultValue="0")
int releaseVersion)
@ShellMethod(key="delete",
value="Delete the release.")
public String delete(@ShellOption(help="the name of the release to delete")
String releaseName)
@ShellMethod(key="upload",
value="Upload a package.")
public String upload(@ShellOption(help="the package to be uploaded")
String path,
@ShellOption(help="the local repository name to upload to",defaultValue="__NULL__")
String repoName)
@ShellMethod(key="list",
value="List the latest version of releases with status of deployed or failed.")
public org.springframework.shell.table.Table list(@ShellOption(help="wildcard expression to search by release name",defaultValue="__NULL__")
String releaseName)
@ShellMethod(key="history",
value="List the history of versions for a given release.")
public org.springframework.shell.table.Table history(@ShellOption(help="wildcard expression to search by release name") @NotNull
String releaseName,
@ShellOption(help="maximum number of revisions to include in the history",defaultValue="__NULL__")
String max)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.