From 3e95681baddbcbb6c7de658cfaf4f979bd13e76d Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 17 Jul 2008 17:32:17 -0700 Subject: [PATCH] interfaces: add IRepairable --- src/allmydata/interfaces.py | 6 ++++++ 1 file changed, 6 insertions(+) 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): -- 2.45.2