def eos_storage_factory(**kwargs): """File storage factory for EOS.""" return pyfs_storage_factory(filestorage_class=EOSFileStorage, **kwargs)
def xrootd_storage_factory(**kwargs): """File storage factory for XRootD.""" return pyfs_storage_factory(filestorage_class=XRootDFileStorage, **kwargs)
def b2share_storage_factory(**kwargs): """Pass B2ShareFileStorage as parameter to pyfs_storage_factory.""" if kwargs['fileinstance'].storage_class == 'B': kwargs['filestorage_class'] = B2ShareFileStorage return pyfs_storage_factory(**kwargs)
def b2share_storage_factory(**kwargs): """Pass B2ShareFileStorage as parameter to pyfs_storage_factory.""" if kwargs['fileinstance'].storage_class == 'B': kwargs['filestorage_class'] = B2ShareFileStorage return pyfs_storage_factory(**kwargs)
def cernopendata_eos_storage_factory(**kwargs): """File storage factory for EOS.""" return pyfs_storage_factory( filestorage_class=EOSFileStorage, **kwargs )