Documentation
¶
Overview ¶
package net contains network related actions
Index ¶
- Variables
- func ActionBaudRates() carapace.Action
- func ActionBssids() carapace.Action
- func ActionConnections() carapace.Action
- func ActionDevices(includedDevices IncludedDevices) carapace.Action
- func ActionHosts() carapace.Action
- func ActionIpv4Addresses() carapace.Action
- func ActionKnownPorts() carapace.Action
- func ActionPorts() carapace.Action
- func ActionProtocols() carapace.Action
- func ActionSsids() carapace.Action
- func ActionSubnets() carapace.Action
- func ActionUsedPorts() carapace.Action
- type IncludedDevices
Constants ¶
This section is empty.
Variables ¶
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, }
Functions ¶
func ActionBssids ¶
ActionBssids completes BSSID's of local wifi networks
AA:BB:CC:DD:EE:FF (somewifi) AA:BB:CC:DD:EE:11 (anotherwifi)
func ActionConnections ¶
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 ActionIpv4Addresses ¶
ActionIpv4Addresses completes ipv4 addresses
192.168.1.100 192.168.100.100/16
func ActionKnownPorts ¶
ActionKnownPorts completes commonly used ports (opiniated)
80 (http) 443 (https)
func ActionProtocols ¶ added in v1.2.0
ActionProtocols completes protocols
ftp (File Transfer Protocol) http (Hypertext Transfer Protocol)
func ActionSsids ¶
ActionSsids completes SSID's of local wifi networks
somewifi (AA:BB:CC:DD:EE:FF) anotherwifi (AA:BB:CC:DD:EE:11)
func ActionSubnets ¶
ActionSubnets completes subnets
24 (255.255.255.0 - 256)# 16 (255.255.0.0 - 65536)
func ActionUsedPorts ¶
ActionUsedPorts completes ports currently in use
3000 (used by: mdbook) 8000 (used by: python)
Types ¶
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
Click to show internal directories.
Click to hide internal directories.