From: Brian Warner <warner@allmydata.com>
Date: Fri, 18 Jul 2008 00:32:17 +0000 (-0700)
Subject: interfaces: add IRepairable
X-Git-Url: https://git.rkrishnan.org/%5B/frontends/flags/%22news.html?a=commitdiff_plain;h=3e95681baddbcbb6c7de658cfaf4f979bd13e76d;p=tahoe-lafs%2Ftahoe-lafs.git

interfaces: add IRepairable
---

diff --git a/src/allmydata/interfaces.py b/src/allmydata/interfaces.py
index c567fe12..85b12683 100644
--- a/src/allmydata/interfaces.py
+++ b/src/allmydata/interfaces.py
@@ -1540,6 +1540,12 @@ class IDeepCheckResults(Interface):
         """Return a list of ICheckerResults, one for each object that
         was not fully healthy."""
 
+class IRepairable(Interface):
+    def repair():
+        """Attempt to repair the given object. Returns a Deferred that fires
+        with a IRepairResults object.
+        """
+
 
 class IClient(Interface):
     def upload(uploadable):