public class ReleaseRepositoryImpl extends Object implements ReleaseRepositoryCustom
| Constructor and Description |
|---|
ReleaseRepositoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.cloud.skipper.domain.Release |
findByNameAndVersion(String releaseName,
int version)
Find the release for the given release name and version
|
List<org.springframework.cloud.skipper.domain.Release> |
findLatestDeployedOrFailed()
Find the latest status (deployed or failed) of all the releases.
|
List<org.springframework.cloud.skipper.domain.Release> |
findLatestDeployedOrFailed(String releaseName)
Find the latest status (deployed or failed) of the release, by the name.
|
org.springframework.cloud.skipper.domain.Release |
findLatestDeployedRelease(String releaseName)
Find the latest in time, release object, by name and with the deployed status.
|
org.springframework.cloud.skipper.domain.Release |
findLatestRelease(String releaseName)
Find the latest in time, release object, by name.
|
org.springframework.cloud.skipper.domain.Release |
findLatestReleaseForUpdate(String releaseName)
Find the latest in time, release object, by name whose status is neither unknown nor failed.
|
org.springframework.cloud.skipper.domain.Release |
findLatestReleaseIfDeleted(String releaseName)
Return the release by the given name if the most recent status of the release is
StatusCode.DELETED. |
List<org.springframework.cloud.skipper.domain.Release> |
findReleaseRevisions(String releaseName,
Integer revisions)
Find the revisions of the release, by name.
|
org.springframework.cloud.skipper.domain.Release |
findReleaseToRollback(String releaseName)
Find the release to rollback from the existing version.
|
public org.springframework.cloud.skipper.domain.Release findLatestRelease(String releaseName)
ReleaseRepositoryCustomfindLatestRelease in interface ReleaseRepositoryCustomreleaseName - the name of the releasepublic org.springframework.cloud.skipper.domain.Release findLatestDeployedRelease(String releaseName)
ReleaseRepositoryCustomfindLatestDeployedRelease in interface ReleaseRepositoryCustomreleaseName - the name of the releasepublic org.springframework.cloud.skipper.domain.Release findLatestReleaseForUpdate(String releaseName)
ReleaseRepositoryCustomfindLatestReleaseForUpdate in interface ReleaseRepositoryCustomreleaseName - the name of the releasepublic org.springframework.cloud.skipper.domain.Release findReleaseToRollback(String releaseName)
ReleaseRepositoryCustomfindReleaseToRollback in interface ReleaseRepositoryCustomreleaseName - the name of the release to rollbackpublic org.springframework.cloud.skipper.domain.Release findByNameAndVersion(String releaseName, int version)
ReleaseRepositoryCustomfindByNameAndVersion in interface ReleaseRepositoryCustomreleaseName - the name of the releaseversion - the version of the releaseReleaseNotFoundException if no Release for the given name and version
can be found.public List<org.springframework.cloud.skipper.domain.Release> findReleaseRevisions(String releaseName, Integer revisions)
ReleaseRepositoryCustomfindReleaseRevisions in interface ReleaseRepositoryCustomreleaseName - the name of the releaserevisions - the maximum number of revisions of the release to look forpublic List<org.springframework.cloud.skipper.domain.Release> findLatestDeployedOrFailed(String releaseName)
ReleaseRepositoryCustomfindLatestDeployedOrFailed in interface ReleaseRepositoryCustomreleaseName - the name is the wildcard expressionpublic List<org.springframework.cloud.skipper.domain.Release> findLatestDeployedOrFailed()
ReleaseRepositoryCustomfindLatestDeployedOrFailed in interface ReleaseRepositoryCustompublic org.springframework.cloud.skipper.domain.Release findLatestReleaseIfDeleted(String releaseName)
ReleaseRepositoryCustomStatusCode.DELETED.findLatestReleaseIfDeleted in interface ReleaseRepositoryCustomreleaseName - the name of the releaseCopyright © 2022 Pivotal Software, Inc.. All rights reserved.