Source code for harp_apps.storage.services.blob_storages.null
from typing import override
from harp.models import Blob
from harp_apps.storage.types import IBlobStorage
[docs]
class NullBlobStorage(IBlobStorage):
type = "null"
[docs]
async def get(self, blob_id: str):
return None
[docs]
@override
async def put(self, blob: Blob) -> Blob:
return blob
force_put = put
[docs]
async def delete(self, blob_id: str):
pass
[docs]
async def exists(self, blob_id: str) -> bool:
return False