upower

package
v0.0.0-...-77ac5d6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.

SPDX-License-Identifier: GPL-3.0-or-later

SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.

SPDX-License-Identifier: GPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInterfaceUpower

type MockInterfaceUpower struct {
	mock.Mock
}

func (*MockInterfaceUpower) ConnectDeviceAdded

func (v *MockInterfaceUpower) ConnectDeviceAdded(cb func(device dbus.ObjectPath)) (dbusutil.SignalHandlerId, error)

func (*MockInterfaceUpower) ConnectDeviceRemoved

func (v *MockInterfaceUpower) ConnectDeviceRemoved(cb func(device dbus.ObjectPath)) (dbusutil.SignalHandlerId, error)

func (*MockInterfaceUpower) DaemonVersion

func (v *MockInterfaceUpower) DaemonVersion() proxy.PropString

func (*MockInterfaceUpower) EnumerateDevices

func (v *MockInterfaceUpower) EnumerateDevices(flags dbus.Flags) ([]dbus.ObjectPath, error)

func (*MockInterfaceUpower) GetCriticalAction

func (v *MockInterfaceUpower) GetCriticalAction(flags dbus.Flags) (string, error)

func (*MockInterfaceUpower) GetDisplayDevice

func (v *MockInterfaceUpower) GetDisplayDevice(flags dbus.Flags) (dbus.ObjectPath, error)

func (*MockInterfaceUpower) GoEnumerateDevices

func (v *MockInterfaceUpower) GoEnumerateDevices(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceUpower) GoGetCriticalAction

func (v *MockInterfaceUpower) GoGetCriticalAction(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceUpower) GoGetDisplayDevice

func (v *MockInterfaceUpower) GoGetDisplayDevice(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceUpower) LidIsClosed

func (v *MockInterfaceUpower) LidIsClosed() proxy.PropBool

func (*MockInterfaceUpower) LidIsPresent

func (v *MockInterfaceUpower) LidIsPresent() proxy.PropBool

func (*MockInterfaceUpower) OnBattery

func (v *MockInterfaceUpower) OnBattery() proxy.PropBool

type MockUPower

type MockUPower struct {
	MockInterfaceUpower // interface org.freedesktop.UPower
	proxy.MockObject
}

type UPower

type UPower interface {
	proxy.Object
	// contains filtered or unexported methods
}

func NewUPower

func NewUPower(conn *dbus.Conn) UPower

Jump to

Keyboard shortcuts

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