]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - src/allmydata/interfaces.py
deletion phase3: add a sqlite database to track renew/cancel-lease secrets, implement...
[tahoe-lafs/tahoe-lafs.git] / src / allmydata / interfaces.py
index 8311bc15dd23b7f3102eb5b516fdbb37a97e0b76..2fb60e9a8c9e7106b85682d1cda708d235afd73b 100644 (file)
@@ -105,6 +105,20 @@ class RIStorageServer(RemoteInterface):
         """
         return TupleOf(SetOf(int, maxLength=MAX_BUCKETS),
                        DictOf(int, RIBucketWriter, maxKeys=MAX_BUCKETS))
+
+    def renew_lease(storage_index=StorageIndex, renew_secret=LeaseRenewSecret):
+        """
+        Renew the lease on a given bucket. Some networks will use this, some
+        will not.
+        """
+
+    def cancel_lease(storage_index=StorageIndex,
+                     cancel_secret=LeaseCancelSecret):
+        """
+        Cancel the lease on a given bucket. If this was the last lease on the
+        bucket, the bucket will be deleted.
+        """
+
     def get_buckets(storage_index=StorageIndex):
         return DictOf(int, RIBucketReader, maxKeys=MAX_BUCKETS)