Changeset View
Changeset View
Standalone View
Standalone View
swh/vault/interface.py
# Copyright (C) 2017-2020 The Software Heritage developers | # Copyright (C) 2017-2020 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from typing import Any, Dict, List, Optional, Tuple | from typing import Any, Dict, List, Optional, Tuple | ||||
from typing_extensions import Protocol, runtime_checkable | from typing_extensions import Protocol, runtime_checkable | ||||
from swh.core.api import remote_api_endpoint | from swh.core.api import remote_api_endpoint | ||||
from swh.model.identifiers import CoreSWHID | from swh.model.swhids import CoreSWHID | ||||
@runtime_checkable | @runtime_checkable | ||||
class VaultInterface(Protocol): | class VaultInterface(Protocol): | ||||
""" | """ | ||||
Backend Interface for the Software Heritage vault. | Backend Interface for the Software Heritage vault. | ||||
""" | """ | ||||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |