blivet.dbus package¶
Submodules¶
blivet.dbus.action module¶
blivet.dbus.blivet module¶
-
class
blivet.dbus.blivet.DBusBlivet(manager)¶ Bases:
blivet.dbus.object.DBusObjectThis class provides the main entry point to the Blivet1 service.
It provides methods for controlling the blivet service and querying its state.
-
Commit()¶ Commit pending changes to disk.
-
Exit()¶ Stop the blivet service.
-
Factory(kwargs)¶
-
InitializeDisk(object_path)¶ Clear a disk and create a disklabel on it.
-
ListDevices()¶ Return a list of strings describing the devices in this system.
-
RemoveDevice(object_path)¶ Remove a device and all devices built on it.
-
Reset()¶ Reset the Blivet instance and populate the device tree.
-
ResolveDevice(spec)¶ Return a string describing the device the given specifier resolves to.
-
id¶
-
interface¶
-
object_path¶
-
properties¶
-
-
blivet.dbus.blivet.sorted_object_paths_from_list(obj_list)¶
blivet.dbus.constants module¶
blivet.dbus.device module¶
blivet.dbus.format module¶
blivet.dbus.manager module¶
-
class
blivet.dbus.manager.ObjectManager¶ Bases:
dbus.service.ObjectClass to implement org.freedesktop.DBus.ObjectManager interface.
Blivet’s ObjectManager interface will manage subtrees for objects that variously (and with mutual-exclusivity) implement blivet’s Device, Format, Action interfaces.
-
GetManagedObjects()¶
-
InterfacesAdded(*args, **keywords)¶
-
InterfacesRemoved(*args, **keywords)¶
-
add_object(obj)¶
-
get_object_by_id(obj_id)¶
-
get_object_by_path(obj_path)¶
-
objects¶
-
remove_object(obj)¶
-
blivet.dbus.object module¶
-
class
blivet.dbus.object.DBusObject(manager)¶ Bases:
dbus.service.ObjectBase class for dbus objects.
-
Get(interface_name, property_name)¶
-
GetAll(interface_name)¶
-
PropertiesChanged(*args, **keywords)¶
-
Set(interface_name, property_name, new_value)¶
-
id¶ The unique id of this instance.
-
interface¶ The interface implemented by this class.
-
object_path¶ The dbus object path for this instance.
-
present¶ Is this object present in blivet’s current view?
-
properties¶ dict of property key/value pairs to export via dbus.
-
remove_from_connection(connection=None, path=None)¶
-