ap

package
v0.0.0-...-900c61a Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ap

type Ap struct {
	EthernetInterfaceName string
	// contains filtered or unexported fields
}

func New

func New(c *cli.Context) *Ap

func (*Ap) ConnectToNetwork

func (a *Ap) ConnectToNetwork(ssid, key string) error

func (*Ap) DnsMasqCmd

func (a *Ap) DnsMasqCmd() *exec.Cmd

func (*Ap) EnsureEthernetStaticIP

func (a *Ap) EnsureEthernetStaticIP(ipWithMask string) error

func (*Ap) EnsureWpaNetworkAdded

func (a *Ap) EnsureWpaNetworkAdded() (string, error)

func (*Ap) GetConnectedSSID

func (a *Ap) GetConnectedSSID() (string, error)

func (*Ap) ScanNetworks

func (a *Ap) ScanNetworks() ([]*WpaNetwork, error)

func (*Ap) StartDnsmasq

func (a *Ap) StartDnsmasq(ctx context.Context) error

func (*Ap) StartWpaSupplicant

func (a *Ap) StartWpaSupplicant(ctx context.Context) error

func (*Ap) StopDnsmasq

func (a *Ap) StopDnsmasq() error

func (*Ap) StopWpaSupplicant

func (a *Ap) StopWpaSupplicant() error

func (*Ap) WpaCmd

func (a *Ap) WpaCmd() *exec.Cmd

func (*Ap) WpaConnectedToWifi

func (a *Ap) WpaConnectedToWifi() (bool, error)

func (*Ap) WpaIsAp

func (a *Ap) WpaIsAp() (bool, error)

type WpaNetwork

type WpaNetwork struct {
	Bssid       string `json:"bssid"`
	Frequency   string `json:"frequency"`
	SignalLevel string `json:"signalLevel"`
	Flags       string `json:"flags"`
	Ssid        string `json:"ssid"`
}

Jump to

Keyboard shortcuts

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