net

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

package net contains network related actions

Index

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 ActionBaudRates

func ActionBaudRates() carapace.Action

ActionBaudRates completes baud rates

75
300

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

192.168.1.1
pihole

func ActionIpv4Addresses

func ActionIpv4Addresses() carapace.Action

ActionIpv4Addresses completes ipv4 addresses

192.168.1.100
192.168.100.100/16

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 (255.255.255.0 - 256)#
16 (255.255.0.0 - 65536)

func ActionUsedPorts

func ActionUsedPorts() carapace.Action

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

Directories

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