swh.objstorage.backends.seaweedfs.objstorage module#

class swh.objstorage.backends.seaweedfs.objstorage.SeaweedFilerObjStorage(url, compression=None, slicing='', pool_maxsize=100, **kwargs)[source]#

Bases: ObjStorage

ObjStorage with seaweedfs abilities, using the Filer API.

chrislusf/seaweedfs

PRIMARY_HASH: typing_extensions.Literal[sha1] = 'sha1'#
check_config(*, check_write)[source]#

Check the configuration for this object storage

add(content: bytes, obj_id: Union[bytes, CompositeObjId], check_presence: bool = True) None[source]#
restore(content: bytes, obj_id: Union[bytes, CompositeObjId]) None[source]#
get(obj_id: Union[bytes, CompositeObjId]) bytes[source]#
check(obj_id: Union[bytes, CompositeObjId]) None[source]#
delete(obj_id: Union[bytes, CompositeObjId])[source]#
list_content(last_obj_id: Optional[Union[bytes, CompositeObjId]] = None, limit: Optional[int] = 10000) Iterator[CompositeObjId][source]#