Update storage service methods to be asynchronous
This commit is contained in:
parent
6362cd2891
commit
f29257c613
1 changed files with 4 additions and 4 deletions
|
|
@ -20,19 +20,19 @@ class StorageService(Service):
|
||||||
self.ready = True
|
self.ready = True
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def save_file(self, flow_id: str, file_name: str, data) -> None:
|
async def save_file(self, flow_id: str, file_name: str, data) -> None:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def get_file(self, flow_id: str, file_name: str) -> bytes:
|
async def get_file(self, flow_id: str, file_name: str) -> bytes:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def list_files(self, flow_id: str) -> list[str]:
|
async def list_files(self, flow_id: str) -> list[str]:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def delete_file(self, flow_id: str, file_name: str) -> bool:
|
async def delete_file(self, flow_id: str, file_name: str) -> bool:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def teardown(self):
|
def teardown(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue