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/gcworker/models_interface.py
2017-06-28 15:13:11 +03:00

13 lines
393 B
Python

from abc import ABCMeta, abstractmethod
from six import add_metaclass
@add_metaclass(ABCMeta)
class GCWorkerDataInterface(object):
"""
Interface that represents all data store interactions required by the GC worker.
"""
@abstractmethod
def perform_garbage_collection(self):
""" Performs garbage collection on a single repository, if any can be found with garbage. """
pass