distrax.mons.get_mon#

distrax.mons.get_mon(name='')[source]#

Gets the mon as specified by the name.

Parameters:

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

Return type:

Optional[MON]

Returns:

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

Examples

>>> distrax.mons as mons
>>> mon = mons.get_mon("ceph")
>>> mon.name
    ceph
>>> mon.MON
    CephMON