power_manager

package
v0.0.0-...-520a03a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon struct {
	*loader.ModuleBase
	// contains filtered or unexported fields
}

func NewDaemon

func NewDaemon(logger *log.Logger) *Daemon

func (*Daemon) GetDependencies

func (d *Daemon) GetDependencies() []string

func (*Daemon) Start

func (d *Daemon) Start() (err error)

func (*Daemon) Stop

func (d *Daemon) Stop() error

func (*Daemon) WaitEnable

func (d *Daemon) WaitEnable()

type Manager

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

func (*Manager) CanHibernate

func (m *Manager) CanHibernate() (can bool, busErr *dbus.Error)

func (*Manager) CanReboot

func (m *Manager) CanReboot() (can bool, busErr *dbus.Error)

func (*Manager) CanShutdown

func (m *Manager) CanShutdown() (can bool, busErr *dbus.Error)

func (*Manager) CanSuspend

func (m *Manager) CanSuspend() (can bool, busErr *dbus.Error)

func (*Manager) GetExportedMethods

func (v *Manager) GetExportedMethods() dbusutil.ExportedMethods

func (*Manager) GetInterfaceName

func (*Manager) GetInterfaceName() string

Jump to

Keyboard shortcuts

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