Documentation
¶
Overview ¶
package net contains network related actions
Index ¶
- Variables
- func ActionBssids() carapace.Action
- func ActionConnections() carapace.Action
- func ActionDevices(includedDevices IncludedDevices) carapace.Action
- func ActionHosts() carapace.Action
- func ActionIpv4Addresses() carapace.Action
- func ActionPorts() carapace.Action
- func ActionSsids() carapace.Action
- func ActionSubnets() 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 ¶ added in v0.1.1
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
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 ActionIpv4Addresses ¶ added in v0.9.0
ActionIpv4Addresses completes ipv4 addresses
192.168.1.100 192.168.100.100/16
func ActionPorts ¶ added in v0.1.11
ActionPorts completes commonly used ports (opiniated)
80 (http) 443 (https)
func ActionSsids ¶ added in v0.1.1
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
ActionSubnets completes subnets
24 (255.255.255.0 - 256)# 16 (255.255.0.0 - 65536)
Types ¶
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
Click to show internal directories.
Click to hide internal directories.