iwd

package
v0.0.0-...-e60c870 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: GPL-3.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Path    dbus.ObjectPath
	Adapter dbus.ObjectPath
	Address string
	Mode    string
	Name    string
	Powered bool
	// contains filtered or unexported fields
}

Device refers to the iwd network device like "wlan0" for example: /net/connman/iwd/0/4

func (*Device) SetPowered

func (d *Device) SetPowered(powered bool) error

type Iwd

type Iwd struct {
	KnownNetworks []KnownNetwork
	Networks      []Network
	Devices       []Device
}

Iwd is a struct over all major iwd components

func New

func New(conn *dbus.Conn) Iwd

New parses the net.connman.iwd object index and initializes an iwd object

type KnownNetwork

type KnownNetwork struct {
	Path              dbus.ObjectPath
	AutoConnect       bool
	Hidden            bool
	LastConnectedTime string
	Name              string
	Type              string
}

KnownNetwork refers to the net.connman.iwd.KnownNetwork object

type Network

type Network struct {
	Path      dbus.ObjectPath
	Connected bool
	Name      string
	Type      string
}

Network refers to the iwd network for example: /net/connman/iwd/0/4/7a65696b7561697a65696b756169646577616e67_psk

func (*Network) Connect

func (n *Network) Connect(conn *dbus.Conn) error

Connect establishes a connection with a network Currently this only works for open networks

Jump to

Keyboard shortcuts

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