Add repo purge callbacks and register TUF metadata deletion as one
This commit is contained in:
parent
883692345b
commit
ec63e495fc
5 changed files with 23 additions and 4 deletions
|
@ -111,9 +111,13 @@ class Config(object):
|
|||
self.app_config = None
|
||||
self.store = None
|
||||
self.image_cleanup_callbacks = []
|
||||
self.repo_cleanup_callbacks = []
|
||||
|
||||
def register_image_cleanup_callback(self, callback):
|
||||
self.image_cleanup_callbacks.append(callback)
|
||||
|
||||
def register_repo_cleanup_callback(self, callback):
|
||||
self.repo_cleanup_callbacks.append(callback)
|
||||
|
||||
|
||||
config = Config()
|
||||
|
|
Reference in a new issue