wpactl

package
v0.0.0-...-399a390 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WPAController

type WPAController struct {
	Interface    string
	EventChannel chan WPAEvent
	// contains filtered or unexported fields
}

func NewController

func NewController(iface string) (*WPAController, error)

func (*WPAController) AddNetwork

func (c *WPAController) AddNetwork() (int, error)

func (*WPAController) Cleanup

func (c *WPAController) Cleanup()

func (*WPAController) DisableNetwork

func (c *WPAController) DisableNetwork(networkId int) error

func (*WPAController) EnableNetwork

func (c *WPAController) EnableNetwork(networkId int) error

func (*WPAController) GetNetworkSetting

func (c *WPAController) GetNetworkSetting(networkId int, variable string) (string, error)

func (*WPAController) Initialise

func (c *WPAController) Initialise() error

func (*WPAController) ListNetworks

func (c *WPAController) ListNetworks() ([]WPANetwork, error)

func (*WPAController) ReloadConfiguration

func (c *WPAController) ReloadConfiguration() error

func (*WPAController) RemoveNetwork

func (c *WPAController) RemoveNetwork(networkId int) error

func (*WPAController) SaveConfiguration

func (c *WPAController) SaveConfiguration() error

func (*WPAController) SelectNetwork

func (c *WPAController) SelectNetwork(networkId int) error

func (*WPAController) SendCommand

func (c *WPAController) SendCommand(command string) (string, error)

func (*WPAController) SendCommandBool

func (c *WPAController) SendCommandBool(command string) error

func (*WPAController) SendCommandInt

func (c *WPAController) SendCommandInt(command string) (int, error)

func (*WPAController) SetNetworkSettingRaw

func (c *WPAController) SetNetworkSettingRaw(networkId int, variable string, value string) error

func (*WPAController) SetNetworkSettingString

func (c *WPAController) SetNetworkSettingString(networkId int, variable string, value string) error

type WPAEvent

type WPAEvent struct {
	Name      string
	Arguments map[string]string
}

type WPANetwork

type WPANetwork struct {
	Id    int
	SSID  string
	ESSID string
	Flags string
}

Jump to

Keyboard shortcuts

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