Documentation ¶
Index ¶
- func KeyOfAttr(attr string) string
- func UAPICfgWithAllPeers(conf *wg_core.WgInterface, replacePeers bool) (string, error)
- func UAPICfgWithFirstPeer(conf *wg_core.WgInterface, replacePeers bool) (string, error)
- func UAPIListen(wgInterface string, device *device.Device, file *os.File) (net.Listener, error)
- func UapiCfgWithMap(cfgMap map[string]string) string
- type TunDeviceRuntime
- func (c *TunDeviceRuntime) AddListener() error
- func (c *TunDeviceRuntime) CheckInterface(ifaceCfg *wg_core.WgInterface) error
- func (c *TunDeviceRuntime) Close() error
- func (c *TunDeviceRuntime) CloseSocket() error
- func (c *TunDeviceRuntime) DownInterface() error
- func (c *TunDeviceRuntime) GetDevice() *device.Device
- func (c *TunDeviceRuntime) UpInterface() error
- func (c *TunDeviceRuntime) UpdateConfig(conf *wg_core.WgInterface, replacePeers bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 UapiCfgWithMap ¶
Types ¶
type TunDeviceRuntime ¶
type TunDeviceRuntime struct {
// contains filtered or unexported fields
}
func NewTunDeviceRuntime ¶
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
Click to show internal directories.
Click to hide internal directories.