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 ¶
- type MockInterfaceUpower
- func (v *MockInterfaceUpower) ConnectDeviceAdded(cb func(device dbus.ObjectPath)) (dbusutil.SignalHandlerId, error)
- func (v *MockInterfaceUpower) ConnectDeviceRemoved(cb func(device dbus.ObjectPath)) (dbusutil.SignalHandlerId, error)
- func (v *MockInterfaceUpower) DaemonVersion() proxy.PropString
- func (v *MockInterfaceUpower) EnumerateDevices(flags dbus.Flags) ([]dbus.ObjectPath, error)
- func (v *MockInterfaceUpower) GetCriticalAction(flags dbus.Flags) (string, error)
- func (v *MockInterfaceUpower) GetDisplayDevice(flags dbus.Flags) (dbus.ObjectPath, error)
- func (v *MockInterfaceUpower) GoEnumerateDevices(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
- func (v *MockInterfaceUpower) GoGetCriticalAction(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
- func (v *MockInterfaceUpower) GoGetDisplayDevice(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
- func (v *MockInterfaceUpower) LidIsClosed() proxy.PropBool
- func (v *MockInterfaceUpower) LidIsPresent() proxy.PropBool
- func (v *MockInterfaceUpower) OnBattery() proxy.PropBool
- type MockUPower
- type UPower
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterfaceUpower ¶
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 }
Click to show internal directories.
Click to hide internal directories.