Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/interface.py
Show First 20 Lines • Show All 1,297 Lines • ▼ Show 20 Lines | def diff_revision(self, revision, track_renaming=False): | ||||
track_renaming (bool): whether or not to track files renaming | track_renaming (bool): whether or not to track files renaming | ||||
Returns: | Returns: | ||||
A list of dict describing the introduced file changes | A list of dict describing the introduced file changes | ||||
(see :func:`swh.storage.algos.diff.diff_directories` | (see :func:`swh.storage.algos.diff.diff_directories` | ||||
for more details). | for more details). | ||||
""" | """ | ||||
... | ... | ||||
@remote_api_endpoint("clear/buffer") | |||||
def clear_buffers(self, object_types: Optional[Iterable[str]] = None) -> None: | |||||
"""For real backend storages (pg, storage, in-memory), this is expected to be a | |||||
noop operation doing nothing. | |||||
For proxy storages (especially filter, buffer), this is expected to | |||||
have a real effect of cleaning the internal state. | |||||
""" | |||||
... |