diff options
author | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2018-11-09 11:38:28 +0100 |
---|---|---|
committer | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2018-11-09 11:38:28 +0100 |
commit | ace32c042f49cc83ce5238abd1ec9f9e067b2055 (patch) | |
tree | 88cdf477bf9171949c31066f0fd35bc3daf06f67 /controller-api | |
parent | dae93df2d85eb7fd67836aa7e644aa3cd5b5f9f7 (diff) |
Add methods for deleting all packages of an application
Diffstat (limited to 'controller-api')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java index 4aae1daee2d..8a3b706bab8 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java @@ -18,6 +18,9 @@ public interface ApplicationStore { /** Removes applications older than the given version, for the given application, and returns whether something was removed. */ boolean pruneApplicationPackages(ApplicationId application, ApplicationVersion olderThanVersion); + /** Removes all application packages for the given application. */ + void removeAll(ApplicationId application); + /** Returns the tester application package of the given version. Does NOT contain the services.xml. */ byte[] getTesterPackage(TesterId tester, ApplicationVersion applicationVersion); @@ -27,4 +30,7 @@ public interface ApplicationStore { /** Removes tester packages older than the given version, for the given tester, and returns whether something was removed. */ boolean pruneTesterPackages(TesterId tester, ApplicationVersion olderThanVersion); + /** Removes all tester packages for the given tester. */ + void removeAll(TesterId tester); + } |