Documentation ¶
Index ¶
- Constants
- func ChooseExistingClient(interfaceDir string, interfaceName string) string
- func ChooseExistingInterface() (string, string)
- func DisableServer(interfaceName string, wgMainDir string)
- func EnableServer(interfaceName string, wgMainDir string)
- func EnsureWireguardInstalled()
- func GenerateConfigQRCode(configFilePath string)
- func GenerateKeyPair(prefix string) models.Creds
- func GetClientConfig()
- func InstallWireguard()
- func ListInterfacesFromDir(dir string) []fs.DirEntry
- func OnboardNewClient()
- func PasteConfigFileData(configFilePath string)
- func SetupWireguardServer()
Constants ¶
View Source
const INTERFACE_CONFIG string = "%s/%s/%s.conf" // Root wireguard, interface name, interface name
View Source
const INTERFACE_NAME string = "wg%d"
View Source
const WG_MAIN_DIR = "/etc/wireguard"
Variables ¶
This section is empty.
Functions ¶
func ChooseExistingClient ¶
func ChooseExistingInterface ¶
func DisableServer ¶
func EnableServer ¶
func EnsureWireguardInstalled ¶
func EnsureWireguardInstalled()
func GenerateConfigQRCode ¶
func GenerateConfigQRCode(configFilePath string)
func GenerateKeyPair ¶
func GetClientConfig ¶
func GetClientConfig()
func InstallWireguard ¶
func InstallWireguard()
func ListInterfacesFromDir ¶
func OnboardNewClient ¶
func OnboardNewClient()
func PasteConfigFileData ¶
func PasteConfigFileData(configFilePath string)
func SetupWireguardServer ¶
func SetupWireguardServer()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.