Documentation ¶
Index ¶
- func CheckForDouble(listPeer []map[string]string, IPAddress string) bool
- func ConnectAndRetrieve(wireguard tools.WGConfig, cmd string) (*ssh.Client, error)
- func RetrieveIPs(conn *ssh.Client) ([]map[string]string, string, error)
- func RunCommand(conn *ssh.Client, cmd string) (string, error)
- func ShowListIPs(listPeers []map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForDouble ¶
CheckForDouble _
func ConnectAndRetrieve ¶
ConnectAndRetrieve connect to the WG server and retrieve all the peers informations
func RetrieveIPs ¶
RetrieveIPs run the command to show all WG IPs setup on the server
func RunCommand ¶
RunCommand will use the ssh connection to run the bash command on the server
func ShowListIPs ¶
ShowListIPs create a pretty array to show the peer IPs and their respective keys
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.