app

package
v0.0.0-...-bfffa74 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSystemApps

func CheckSystemApps()

CheckSystemApps checks system apps are in path

func Configs

func Configs() []string

Configs will return a slice of available wireguard interface configs

func InArray

func InArray(val string, array []string) bool

InArray returns if a string is in a string slice

func PublicIP

func PublicIP() (string, error)

PublicIP returns your public IP

func PublicKey

func PublicKey(wg string) string

PublicKey returns a public key

func Select

func Select(question string, choices []string) string

Select will present a list of choices

func SudoExec

func SudoExec(command string) (string, error)

SudoExec will run a particular comand and return the output or an error. All commands are run via sudo.

func WGConnections

func WGConnections() []string

WGConnections return running connection interfaces

func WGStatus

func WGStatus() error

WGStatus return the current status

Types

This section is empty.

Jump to

Keyboard shortcuts

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