#42 add support for is_authorized hook

This commit is contained in:
Alok Saldanha
2021-11-14 17:28:10 -05:00
parent 620181ae4d
commit 551cb46af8
5 changed files with 17 additions and 2 deletions
+4
View File
@@ -40,6 +40,10 @@ class ItemSource(ABC):
def update(self, item: Item) -> None:
raise Exception('"update" unimplemented')
@abstractmethod
def is_authorized(self, descriptor: str) -> bool:
raise Exception('"is_authorized" unimplemented')
@abstractmethod
def lookup(self, descriptor: str) -> LookupResult:
raise Exception('"lookup" unimplemented')