public interface SkipperClient
Modifier and Type | Method and Description |
---|---|
Repository |
addRepository(String name,
String rootUrl,
String sourceUrl)
Add a new Package Repository.
|
CancelResponse |
cancel(CancelRequest cancelRequest)
Sends a cancel request for current release operation
|
static SkipperClient |
create(String baseUrl) |
void |
delete(String releaseName,
boolean deletePackage)
Delete a specific release.
|
void |
deleteRepository(String name)
Delete a Package Repository.
|
LogInfo |
getLog(String releaseName)
Fetch the logs of the latest release identified by the given name.
|
LogInfo |
getLog(String releaseName,
String appName)
Fetch the logs of the latest release identified by the given release name
and a specific application name inside the release.
|
Template |
getSpringCloudDeployerApplicationTemplate()
Return the template for deploying a Spring Boot Application using skipper.
|
org.springframework.hateoas.CollectionModel<Release> |
history(String releaseName)
List all releases for the given release name.
|
AboutResource |
info() |
Release |
install(InstallRequest installRequest)
Install the package
|
List<Release> |
list(String releaseNameLike)
List the latest version of releases with status of deployed or failed.
|
org.springframework.hateoas.CollectionModel<Deployer> |
listDeployers()
List Platform Deployers
|
org.springframework.hateoas.CollectionModel<Repository> |
listRepositories()
List Package Repositories.
|
String |
manifest(String releaseName)
Return the manifest of the last known release.
|
String |
manifest(String releaseName,
int releaseVersion)
Return a manifest info of a release version.
|
void |
packageDelete(String packageName)
Delete a package
|
Release |
rollback(RollbackRequest rollbackRequest)
Rollback a specific release.
|
Release |
rollback(String releaseName,
int releaseVersion)
Deprecated.
use rollback method taking a rollback request
|
org.springframework.hateoas.CollectionModel<PackageMetadata> |
search(String name,
boolean details)
Search for package metadata.
|
Info |
status(String releaseName)
Return a status info of a last known release.
|
Info |
status(String releaseName,
int releaseVersion)
Return a status info of a release version.
|
Release |
upgrade(UpgradeRequest upgradeRequest)
Upgrade a release.
|
PackageMetadata |
upload(UploadRequest uploadRequest)
Upload the package.
|
static SkipperClient create(String baseUrl)
Template getSpringCloudDeployerApplicationTemplate()
AboutResource info()
org.springframework.hateoas.CollectionModel<PackageMetadata> search(String name, boolean details)
name
- optional name with wildcard support for searchingdetails
- boolean flag to fetch all the metadataRelease install(InstallRequest installRequest)
installRequest
- the package install requestRelease
Release upgrade(UpgradeRequest upgradeRequest)
upgradeRequest
- the request to upgrade the releaseRelease
PackageMetadata upload(UploadRequest uploadRequest)
uploadRequest
- the properties for the package uploadvoid packageDelete(String packageName)
packageName
- the name of the packagevoid delete(String releaseName, boolean deletePackage)
releaseName
- the release namedeletePackage
- delete package when deleting the releaseRelease rollback(RollbackRequest rollbackRequest)
rollbackRequest
- the rollback requestRelease
@Deprecated Release rollback(String releaseName, int releaseVersion)
releaseName
- the release namereleaseVersion
- the release versionRelease
rollback(RollbackRequest)
CancelResponse cancel(CancelRequest cancelRequest)
cancelRequest
- the cancel requestList<Release> list(String releaseNameLike)
releaseNameLike
- the wildcard name of releases to search fororg.springframework.hateoas.CollectionModel<Release> history(String releaseName)
releaseName
- the release name of the release to search forRepository addRepository(String name, String rootUrl, String sourceUrl)
name
- the name of the repositoryrootUrl
- the root URL for the packagesourceUrl
- the source URL for the packagesvoid deleteRepository(String name)
name
- the name of the repositoryorg.springframework.hateoas.CollectionModel<Repository> listRepositories()
org.springframework.hateoas.CollectionModel<Deployer> listDeployers()
Info status(String releaseName)
releaseName
- the release nameInfo status(String releaseName, int releaseVersion)
releaseName
- the release namereleaseVersion
- the release versionString manifest(String releaseName)
releaseName
- the release nameString manifest(String releaseName, int releaseVersion)
releaseName
- the release namereleaseVersion
- the release versionLogInfo getLog(String releaseName)
releaseName
- the release nameCopyright © 2019 Pivotal Software, Inc.. All rights reserved.