distrax.filesystems.get_filesystem#

distrax.filesystems.get_filesystem(name='')[source]#

Gets the filesystem as specified by the name.

Parameters:

name (str) – Name of a supported filesystem, i.e. ceph

Return type:

Optional[FILESYSTEM]

Returns:

A name tuple with the name of the storage and the class

Examples

>>> distrax.filesystems as filesystems
>>> filesystem = filesystems.get_filesystem("ceph")
>>> filesystem.name
    ceph
>>> filesystem.FILESYSTEM
    CephFilesystem