Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBus ¶
type DBus interface { // DaemonReload reload the systemd configuration, same as executing "systemctl daemon-reload". DaemonReload(ctx context.Context) error // Enable the given units, same as executing "systemctl enable unit". Enable(ctx context.Context, unitNames ...string) error // Disable the given units, same as executing "systemctl disable unit". Disable(ctx context.Context, unitNames ...string) error // Start the given unit and record an event to the node object, same as executing "systemctl start unit". Start(ctx context.Context, recorder record.EventRecorder, node runtime.Object, unitName string) error // Stop the given unit and record an event to the node object, same as executing "systemctl stop unit". Stop(ctx context.Context, recorder record.EventRecorder, node runtime.Object, unitName string) error // Restart the given unit and record an event to the node object, same as executing "systemctl restart unit". Restart(ctx context.Context, recorder record.EventRecorder, node runtime.Object, unitName string) error }
DBus is an interface for interacting with systemd via dbus.
Click to show internal directories.
Click to hide internal directories.