Documentation
¶
Overview ¶
Package logindtest is a fake systemd-logind on a private bus, seen from a caller outside any login session: a shell the systemd user manager started.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logind ¶
type Logind struct {
// Bus is the private bus logind owns its name on.
Bus *dbustest.Bus
// Terminated lists the session paths Terminate was called on.
Terminated dbustest.Var[[]dbus.ObjectPath]
// Locked lists the session paths Lock was called on, aliases
// resolved.
Locked dbustest.Var[[]dbus.ObjectPath]
// contains filtered or unexported fields
}
Logind is the fake. Its manager resolves "auto" to the user's display session, and "self" to nothing, since the caller is in no session. Likewise the /session/auto object alias is the display session, and /session/self does not exist.