power_manager

package
v0.0.0-...-c5429dd Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: GPL-3.0 Imports: 8 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

type Manager

type Manager struct {
	VirtualMachineName string
	// 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