Documentation ¶
Overview ¶
Package device implements OS abstractions for managing WireGuard links
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Device ¶
func FindUserDevice ¶
type KernelDevice ¶
func FindKernelDevice ¶
func FindKernelDevice(name string) (*KernelDevice, error)
func NewKernelDevice ¶
func NewKernelDevice(name string) (*KernelDevice, error)
func (*KernelDevice) Bind ¶
func (d *KernelDevice) Bind() *wg.Bind
func (*KernelDevice) BindUpdate ¶
func (d *KernelDevice) BindUpdate() error
type UserDevice ¶
func NewUserDevice ¶
func NewUserDevice(name string) (*UserDevice, error)
func (*UserDevice) Bind ¶
func (d *UserDevice) Bind() *wg.Bind
func (*UserDevice) Close ¶
func (d *UserDevice) Close() error
Click to show internal directories.
Click to hide internal directories.