]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
interfaces: add IRepairable
authorBrian Warner <warner@allmydata.com>
Fri, 18 Jul 2008 00:32:17 +0000 (17:32 -0700)
committerBrian Warner <warner@allmydata.com>
Fri, 18 Jul 2008 00:32:17 +0000 (17:32 -0700)
src/allmydata/interfaces.py

index c567fe12cbc36b27a1ff9f828c4a2180e48f672a..85b12683310ebdb031778733b479a80e688b6cd7 100644 (file)
@@ -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):