v1.0.4 Latest Latest

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

Go to latest
Published: Jun 30, 2024 License: MIT Imports: 9 Imported by: 0



package net contains network related actions



This section is empty.


View Source
var AllDevices = IncludedDevices{
	Bluetooth:   true,
	Bond:        true,
	BondSlave:   true,
	Bridge:      true,
	BridgeSlave: true,
	Cdma:        true,
	Ethernet:    true,
	Gsm:         true,
	Infiniband:  true,
	Loopback:    true,
	OlpcMesh:    true,
	Pppoe:       true,
	Team:        true,
	TeamSlave:   true,
	Vlan:        true,
	Vpn:         true,
	Wifi:        true,
	Wimax:       true,


func ActionBaudRates

func ActionBaudRates() carapace.Action

ActionBaudRates completes baud rates


func ActionBssids

func ActionBssids() carapace.Action

ActionBssids completes BSSID's of local wifi networks

AA:BB:CC:DD:EE:FF (somewifi)
AA:BB:CC:DD:EE:11 (anotherwifi)

func ActionConnections

func ActionConnections() carapace.Action

ActionConnections completes stored network connections

somewifi (802-11-wireless abcdefgh-hijk-lmnop-qert-012345678902)
private (vpn abcdefgh-hijk-lmnop-qert-012345678901)

func ActionDevices

func ActionDevices(includedDevices IncludedDevices) carapace.Action

ActionDevices completes network devices

lo (loopback)
wlp3s0 (wifi)

func ActionHosts

func ActionHosts() carapace.Action

ActionHosts completes known hosts

func ActionIpv4Addresses

func ActionIpv4Addresses() carapace.Action

ActionIpv4Addresses completes ipv4 addresses

func ActionKnownPorts

func ActionKnownPorts() carapace.Action

ActionKnownPorts completes commonly used ports (opiniated)

80 (http)
443 (https)

func ActionPorts

func ActionPorts() carapace.Action

ActionPorts completes known and used ports.

func ActionSsids

func ActionSsids() carapace.Action

ActionSsids completes SSID's of local wifi networks

somewifi (AA:BB:CC:DD:EE:FF)
anotherwifi (AA:BB:CC:DD:EE:11)

func ActionSubnets

func ActionSubnets() carapace.Action

ActionSubnets completes subnets

24 ( - 256)#
16 ( - 65536)

func ActionUsedPorts

func ActionUsedPorts() carapace.Action

ActionUsedPorts completes ports currently in use

3000 (used by: mdbook)
8000 (used by: python)


type IncludedDevices

type IncludedDevices struct {
	Bluetooth   bool
	Bond        bool
	BondSlave   bool
	Bridge      bool
	BridgeSlave bool
	Cdma        bool
	Ethernet    bool
	Gsm         bool
	Infiniband  bool
	Loopback    bool
	OlpcMesh    bool
	Pppoe       bool
	Team        bool
	TeamSlave   bool
	Vlan        bool
	Vpn         bool
	Wifi        bool
	Wimax       bool

func (IncludedDevices) Includes

func (i IncludedDevices) Includes(deviceType string) bool


Path Synopsis
package http contains http related actions
package http contains http related actions
package ssh contains ssh related actions
package ssh contains ssh related actions

Jump to

Keyboard shortcuts

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