network

package
v0.0.0-...-82fb81f Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForDouble

func CheckForDouble(listPeer []map[string]string, IPAddress string) bool

CheckForDouble _

func ConnectAndRetrieve

func ConnectAndRetrieve(wireguard tools.WGConfig, cmd string) (*ssh.Client, error)

ConnectAndRetrieve connect to the WG server and retrieve all the peers informations

func RetrieveIPs

func RetrieveIPs(conn *ssh.Client) ([]map[string]string, string, error)

RetrieveIPs run the command to show all WG IPs setup on the server

func RunCommand

func RunCommand(conn *ssh.Client, cmd string) (string, error)

RunCommand will use the ssh connection to run the bash command on the server

func ShowListIPs

func ShowListIPs(listPeers []map[string]string)

ShowListIPs create a pretty array to show the peer IPs and their respective keys

Types

This section is empty.

Jump to

Keyboard shortcuts

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