network

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 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 com.deepin.system.Network
	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