networkmanager

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableNetworkManagerForInterfaces

func DisableNetworkManagerForInterfaces(nm NetworkManagerIf, interfaces []string) error

Types

type DeviceWrapper

type DeviceWrapper struct {
	// contains filtered or unexported fields
}

func (*DeviceWrapper) GetPropertyInterface

func (d *DeviceWrapper) GetPropertyInterface() (string, error)

func (*DeviceWrapper) SetPropertyManaged

func (d *DeviceWrapper) SetPropertyManaged(managed bool) error

type DeviceWrapperIf

type DeviceWrapperIf interface {
	GetPropertyInterface() (string, error)
	SetPropertyManaged(managed bool) error
}

type NetworkManager

type NetworkManager struct {
	// contains filtered or unexported fields
}

func (*NetworkManager) GetAllDevices

func (r *NetworkManager) GetAllDevices() ([]DeviceWrapperIf, error)

func (*NetworkManager) GetPropertyVersion

func (r *NetworkManager) GetPropertyVersion() (string, error)

type NetworkManagerIf

type NetworkManagerIf interface {
	GetPropertyVersion() (string, error)
	GetAllDevices() ([]DeviceWrapperIf, error)
}

func NewNetworkManager

func NewNetworkManager() (NetworkManagerIf, error)

Jump to

Keyboard shortcuts

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