network1

package
v0.0.0-...-454a0ba Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: GPL-3.0 Imports: 7 Imported by: 1

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 MockInterfaceNetwork

type MockInterfaceNetwork struct {
	mock.Mock
}

func (*MockInterfaceNetwork) ConnectDeviceEnabled

func (v *MockInterfaceNetwork) ConnectDeviceEnabled(cb func(devPath dbus.ObjectPath, enabled bool)) (dbusutil.SignalHandlerId, error)

func (*MockInterfaceNetwork) EnableDevice

func (v *MockInterfaceNetwork) EnableDevice(flags dbus.Flags, pathOrIface string, enabled bool) (dbus.ObjectPath, error)

func (*MockInterfaceNetwork) GoEnableDevice

func (v *MockInterfaceNetwork) GoEnableDevice(flags dbus.Flags, ch chan *dbus.Call, pathOrIface string, enabled bool) *dbus.Call

func (*MockInterfaceNetwork) GoIsDeviceEnabled

func (v *MockInterfaceNetwork) GoIsDeviceEnabled(flags dbus.Flags, ch chan *dbus.Call, pathOrIface string) *dbus.Call

func (*MockInterfaceNetwork) GoPing

func (v *MockInterfaceNetwork) GoPing(flags dbus.Flags, ch chan *dbus.Call, host string) *dbus.Call

func (*MockInterfaceNetwork) GoToggleWirelessEnabled

func (v *MockInterfaceNetwork) GoToggleWirelessEnabled(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceNetwork) IsDeviceEnabled

func (v *MockInterfaceNetwork) IsDeviceEnabled(flags dbus.Flags, pathOrIface string) (bool, error)

func (*MockInterfaceNetwork) Ping

func (v *MockInterfaceNetwork) Ping(flags dbus.Flags, host string) error

func (*MockInterfaceNetwork) ToggleWirelessEnabled

func (v *MockInterfaceNetwork) ToggleWirelessEnabled(flags dbus.Flags) (bool, error)

func (*MockInterfaceNetwork) VpnEnabled

func (v *MockInterfaceNetwork) VpnEnabled() proxy.PropBool

type MockNetwork

type MockNetwork struct {
	MockInterfaceNetwork // interface org.deepin.dde.Network1
	proxy.MockObject
}

type Network

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

func NewNetwork

func NewNetwork(conn *dbus.Conn) Network

Jump to

Keyboard shortcuts

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