internal

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyOfAttr

func KeyOfAttr(attr string) string

func UAPICfgWithAllPeers

func UAPICfgWithAllPeers(conf *wg_core.WgInterface, replacePeers bool) (string, error)

func UAPICfgWithFirstPeer

func UAPICfgWithFirstPeer(conf *wg_core.WgInterface, replacePeers bool) (string, error)

func UAPIListen

func UAPIListen(wgInterface string, device *device.Device, file *os.File) (net.Listener, error)

func UapiCfgWithMap

func UapiCfgWithMap(cfgMap map[string]string) string

Types

type TunDeviceRuntime

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

func NewTunDeviceRuntime

func NewTunDeviceRuntime(iface string, logger *zap.Logger, deviceLog bool, addListener bool) *TunDeviceRuntime

func (*TunDeviceRuntime) AddListener

func (c *TunDeviceRuntime) AddListener() error

func (*TunDeviceRuntime) CheckInterface

func (c *TunDeviceRuntime) CheckInterface(ifaceCfg *wg_core.WgInterface) error

func (*TunDeviceRuntime) Close

func (c *TunDeviceRuntime) Close() error

func (*TunDeviceRuntime) CloseSocket

func (c *TunDeviceRuntime) CloseSocket() error

func (*TunDeviceRuntime) DownInterface

func (c *TunDeviceRuntime) DownInterface() error

func (*TunDeviceRuntime) GetDevice

func (c *TunDeviceRuntime) GetDevice() *device.Device

func (*TunDeviceRuntime) UpInterface

func (c *TunDeviceRuntime) UpInterface() error

func (*TunDeviceRuntime) UpdateConfig

func (c *TunDeviceRuntime) UpdateConfig(conf *wg_core.WgInterface, replacePeers bool) error

Jump to

Keyboard shortcuts

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