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.
Click to show internal directories.
Click to hide internal directories.