initial import for Open Source 🎉
This commit is contained in:
parent
1898c361f3
commit
9c0dd3b722
2048 changed files with 218743 additions and 0 deletions
14
endpoints/api/signing_models_interface.py
Normal file
14
endpoints/api/signing_models_interface.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from abc import ABCMeta, abstractmethod
|
||||
from six import add_metaclass
|
||||
|
||||
@add_metaclass(ABCMeta)
|
||||
class SigningInterface(object):
|
||||
"""
|
||||
Interface that represents all data store interactions required by the signing API endpoint.
|
||||
"""
|
||||
@abstractmethod
|
||||
def is_trust_enabled(self, namespace_name, repo_name):
|
||||
"""
|
||||
Returns whether the repository with the given namespace name and repository name exists and
|
||||
has trust enabled.
|
||||
"""
|
Reference in a new issue