swh.objstorage.multiplexer.filter.read_write_filter module#

class swh.objstorage.multiplexer.filter.read_write_filter.ReadObjStorageFilter(storage)[source]#

Bases: ObjStorageFilter

Filter that disable write operation of the storage.

Writes will always succeed without doing any actual write operations.

check_config(*, check_write)[source]#

Check the object storage for proper configuration.

Parameters:

check_write – check whether writes to the objstorage will succeed

Returns:

True if the storage is properly configured

add(*args, **kwargs)[source]#
restore(*args, **kwargs)[source]#
delete(*args, **kwargs)[source]#