wireguard

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager added in v0.2.0

type Manager interface {
	ApplyConfiguration(config *WireguardConfig) error
	PublicKey() []byte
}

func NewManager added in v0.2.0

func NewManager() (Manager, error)

type Peer

type Peer struct {
	Endpoint  net.IP
	NodeCIDRs []net.IPNet
	PodCIDRs  []net.IPNet
	PublicKey wgtypes.Key
}

type WireguardConfig

type WireguardConfig struct {
	Addresses []net.IP
	Peers     []Peer
}

func NewConfig

func NewConfig(addresses []net.IP, peers []Peer) WireguardConfig

Jump to

Keyboard shortcuts

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