endpoint

package
v0.0.0-...-c97221a Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnectionEndpoint

func NewConnectionEndpoint(resourceAllocator *resources.Allocator, wgClientFactory *WgClientFactory) (wg.ConnectionEndpoint, error)

NewConnectionEndpoint returns new connection endpoint instance.

Types

type WgClient

type WgClient interface {
	ConfigureDevice(config wgcfg.DeviceConfig) error
	ReConfigureDevice(config wgcfg.DeviceConfig) error
	DestroyDevice(name string) error
	PeerStats(iface string) (wgcfg.Stats, error)
	Close() error
}

WgClient represents WireGuard client.

type WgClientFactory

type WgClientFactory struct {
	// contains filtered or unexported fields
}

WgClientFactory represents WireGuard client factory.

func NewWGClientFactory

func NewWGClientFactory() *WgClientFactory

NewWGClientFactory returns a new client factory.

func (*WgClientFactory) NewWGClient

func (wcf *WgClientFactory) NewWGClient() (WgClient, error)

NewWGClient returns a new wireguard client.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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