public interface ReleaseRepositoryCustom
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.
|
org.springframework.cloud.skipper.domain.Release findLatestRelease(String releaseName)
releaseName
- the name of the release{@link
- ReleaseNotFoundException} if no Release for the given name can be found.org.springframework.cloud.skipper.domain.Release findLatestDeployedRelease(String releaseName)
releaseName
- the name of the release{@link
- ReleaseNotFoundException} if no deployed Release for the given name can be found.org.springframework.cloud.skipper.domain.Release findLatestReleaseForUpdate(String releaseName)
releaseName
- the name of the release{@link
- ReleaseNotFoundException} if no latest Release (with the deployed/deleted status) for the given
name can be found.org.springframework.cloud.skipper.domain.Release findReleaseToRollback(String releaseName)
releaseName
- the name of the release to rollback{@link
- ReleaseNotFoundException} if no latest Release found to rollback to.org.springframework.cloud.skipper.domain.Release findByNameAndVersion(String releaseName, int version)
releaseName
- the name of the releaseversion
- the version of the releaseReleaseNotFoundException
if no Release for the given name and version
can be found.List<org.springframework.cloud.skipper.domain.Release> findReleaseRevisions(String releaseName, Integer revisions)
releaseName
- the name of the releaserevisions
- the maximum number of revisions of the release to look fororg.springframework.cloud.skipper.SkipperException
- if no Release for the given name can be found.List<org.springframework.cloud.skipper.domain.Release> findLatestDeployedOrFailed(String releaseName)
releaseName
- the name is the wildcard expressionList<org.springframework.cloud.skipper.domain.Release> findLatestDeployedOrFailed()
org.springframework.cloud.skipper.domain.Release findLatestReleaseIfDeleted(String releaseName)
StatusCode.DELETED
.releaseName
- the name of the releaseCopyright © 2019 Pivotal Software, Inc.. All rights reserved.