wireguard

package
v1.2.20 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MTU = 1420

Variables

This section is empty.

Functions

func CreateWireguardConfiguration

func CreateWireguardConfiguration(state agent.State, iface string, listenPort int) (wgtypes.Config, error)
func SyncLink(_ agent.State, iface string, wgUserspaceImplementationFallback string, wgUseUserspaceImpl bool) error

Types

type Wireguard

type Wireguard struct {
	Logger                            logr.Logger
	Iface                             string
	ListenPort                        int
	WgUserspaceImplementationFallback string
	WgUseUserspaceImpl                bool
}

func (*Wireguard) Sync

func (wg *Wireguard) Sync(state agent.State) error

Jump to

Keyboard shortcuts

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