vpn

package
v1.30.2-rc2.0...-b4d4ed8 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartVPN

func StartVPN(vpnAuthConfigFile string) error

StartVPN starts the VPN interface. General function in case we want to add more vpn integrations

Types

type TailscaleOutput

type TailscaleOutput struct {
	TailscaleIPs []string `json:"TailscaleIPs"`
}

type VPNInfo

type VPNInfo struct {
	IPv4Address  net.IP
	IPv6Address  net.IP
	NodeID       string
	ProviderName string
	VPNInterface string
}

VPNInfo includes node information of the VPN. It is a general struct in case we want to add more vpn integrations

func GetVPNInfo

func GetVPNInfo(vpnAuth string) (VPNInfo, error)

GetVPNInfo returns a VPNInfo object with details about the VPN. General function in case we want to add more vpn integrations

Jump to

Keyboard shortcuts

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