This repository has been archived on 2020-03-24. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
quay/workers/gc/models_interface.py
2017-06-29 09:40:39 +03:00

15 lines
395 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