wginterface

package
v0.0.0-...-365054f Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: GPL-3.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 WgInterface

type WgInterface struct {
	Name   string
	Device *device.Device
	// contains filtered or unexported fields
}

WgInterface represents WireGuard tunnel with underlying device.

func New

func New(cfg wgcfg.DeviceConfig, uid string) (*WgInterface, error)

New creates new WgInterface instance.

func (*WgInterface) Down

func (a *WgInterface) Down()

Down closes device and user space api socket.

func (*WgInterface) Reconfigure

func (a *WgInterface) Reconfigure(cfg wgcfg.DeviceConfig) error

Reconfigure applies new configuration for the existing wireguard interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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