wg

package
v1.0.59 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckWgInstallation

func CheckWgInstallation(checkInstallation, dnsSetup bool) error

func DownCmd

func DownCmd(ctx context.Context, filePath, _ string) (err *cmdRunner.ExecCmd)

func GenerateConfig

func GenerateConfig(f io.Writer, privateKey wgtypes.Key, vpnSettings output.ProjectVpnItem, mtu int, dnsSetup bool) error

func InterfaceExists added in v1.0.46

func InterfaceExists() (bool, error)

func UpCmd

func UpCmd(ctx context.Context, filePath string) (err *cmdRunner.ExecCmd)

Types

type TemplateData added in v1.0.59

type TemplateData struct {
	Mtu                       int
	PrivateKey                string
	PublicKey                 string
	AssignedIpv4Address       string
	AssignedIpv6Address       string
	Ipv4NetworkGateway        string
	ProjectIpv4Network        string
	ProjectIpv6Network        string
	Ipv4Network               string
	Ipv6Network               string
	DnsSetup                  bool
	ProjectIpv4SharedEndpoint string
}

Jump to

Keyboard shortcuts

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