This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/workers/gc/models_interface.py

16 lines
395 B
Python
Raw Normal View History

2017-06-28 12:13:11 +00:00
from abc import ABCMeta, abstractmethod
from six import add_metaclass
2017-06-29 06:40:39 +00:00
2017-06-28 12:13:11 +00:00
@add_metaclass(ABCMeta)
class GCWorkerDataInterface(object):
"""
Interface that represents all data store interactions required by the GC worker.
"""
2017-06-29 06:40:39 +00:00
2017-06-28 12:13:11 +00:00
@abstractmethod
def perform_garbage_collection(self):
""" Performs garbage collection on a single repository, if any can be found with garbage. """
pass