cmd

package
v0.0.0-...-d6be95a Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func IsRoot

func IsRoot() bool

Types

type AccessPoint

type AccessPoint struct {
	IfaceName     string
	WifiIface     string
	IPRange       net.IPNet
	Dns           net.IP
	Ssid          string
	Password      string
	HostapdCFG    string
	InternetIface string
}

func (*AccessPoint) CleanupAP

func (AP *AccessPoint) CleanupAP(HostapdCmd *exec.Cmd, dhcpPacketConn net.PacketConn,
	wifidev *networkHandler.WifiDevice) (err error)

func (*AccessPoint) CreateAP

func (AP *AccessPoint) CreateAP(ctx context.Context, wg *sync.WaitGroup, hostapdOptions []hostapd.HostapdOption) error

Jump to

Keyboard shortcuts

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