@ShellComponent public class PackageCommands extends AbstractSkipperCommand
skipperClient
Constructor and Description |
---|
PackageCommands(SkipperClient skipperClient) |
Modifier and Type | Method and Description |
---|---|
String |
install(String packageName,
String packageVersion,
File file,
String properties,
String releaseName,
String platformName) |
String |
packageDelete(String packageName) |
Object |
search(String name,
boolean details) |
String |
upload(String path,
String repoName) |
@Autowired public PackageCommands(SkipperClient skipperClient)
@ShellMethod(key={"package search","package list"}, value="Search for 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="package 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="package 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="package delete", value="Delete a package.") public String packageDelete(@ShellOption(help="the package name to be deleted") String packageName)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.