dbusmock.templates.systemd

systemd mock template

Attributes

__author__

__copyright__

BUS_PREFIX

PATH_PREFIX

BUS_NAME

MAIN_OBJ

MAIN_IFACE

UNIT_IFACE

SYSTEM_BUS

Functions

load(mock, _parameters)

escape_unit_name(name)

emit_job_new_remove(mock, job_id, job_path, name)

StartUnit(self, name, _mode)

StartTransientUnit(self, name, _mode, _properties, _aux)

StopUnit(self, name, _mode)

GetUnit(self, name)

AddMockUnit(self, name)

Module Contents

dbusmock.templates.systemd.__author__ = 'Jonas Ådahl'[source]
Show Value
"""
(c) 2021 Red Hat
(c) 2017 - 2022 Martin Pitt <martin@piware.de>
"""
dbusmock.templates.systemd.BUS_PREFIX = 'org.freedesktop.systemd1'[source]
dbusmock.templates.systemd.PATH_PREFIX = '/org/freedesktop/systemd1'[source]
dbusmock.templates.systemd.BUS_NAME[source]
dbusmock.templates.systemd.MAIN_OBJ[source]
dbusmock.templates.systemd.MAIN_IFACE[source]
dbusmock.templates.systemd.UNIT_IFACE[source]
dbusmock.templates.systemd.SYSTEM_BUS = True[source]
dbusmock.templates.systemd.load(mock, _parameters)[source]
dbusmock.templates.systemd.escape_unit_name(name)[source]
dbusmock.templates.systemd.emit_job_new_remove(mock, job_id, job_path, name)[source]
dbusmock.templates.systemd.StartUnit(self, name, _mode)[source]
dbusmock.templates.systemd.StartTransientUnit(self, name, _mode, _properties, _aux)[source]
dbusmock.templates.systemd.StopUnit(self, name, _mode)[source]
dbusmock.templates.systemd.GetUnit(self, name)[source]
dbusmock.templates.systemd.AddMockUnit(self, name)[source]