logind

package
v0.0.0-...-7da075e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Hibernate = LogindInterface + ".Hibernate"
View Source
const LogindInterface = "org.freedesktop.login1.Manager"
View Source
const LogindNode = "org.freedesktop.login1"
View Source
const LogindPath = "/org/freedesktop/login1"
View Source
const PowerOff = LogindInterface + ".PowerOff"
View Source
const Reboot = LogindInterface + ".Reboot"
View Source
const Suspend = LogindInterface + ".Suspend"
View Source
const TerminateSession = LogindInterface + ".TerminateSession"

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func ConnectToLogindManager

func ConnectToLogindManager() (Manager, error)

func NewLogindManager

func NewLogindManager(conn *dbus.Conn) Manager

func (Manager) Hibernate

func (m Manager) Hibernate() error

func (Manager) PowerOff

func (m Manager) PowerOff() error

func (Manager) Reboot

func (m Manager) Reboot() error

func (Manager) Suspend

func (m Manager) Suspend() error

func (Manager) TerminateCurrentSession

func (m Manager) TerminateCurrentSession() error

func (Manager) TerminateSession

func (m Manager) TerminateSession(sessionID string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL