v0.30.2 Latest Latest

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

Go to latest
Published: Feb 21, 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 added in v0.28.1

func ActionBaudRates() carapace.Action

ActionBaudRates completes baud rates


func ActionBssids added in v0.1.1

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 added in v0.1.1

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 added in v0.1.1

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 added in v0.9.0

func ActionIpv4Addresses() carapace.Action

ActionIpv4Addresses completes ipv4 addresses

func ActionKnownPorts added in v0.28.0

func ActionKnownPorts() carapace.Action

ActionKnownPorts completes commonly used ports (opiniated)

80 (http)
443 (https)

func ActionPorts added in v0.1.11

func ActionPorts() carapace.Action

ActionPorts completes known and used ports.

func ActionSsids added in v0.1.1

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 added in v0.9.0

func ActionSubnets() carapace.Action

ActionSubnets completes subnets

24 ( - 256)#
16 ( - 65536)

func ActionUsedPorts added in v0.28.0

func ActionUsedPorts() carapace.Action

ActionUsedPorts completes ports currently in use

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


type IncludedDevices added in v0.1.1

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 added in v0.1.1

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