package wguser

import "golang.zx2c4.com/wireguard/wgctrl/internal/wguser"

Package wguser provides internal access to the userspace WireGuard configuration protocol interface.

This package is internal-only and not meant for end users to consume. Please use package wgctrl (an abstraction over this package) instead.

Index

Types

type Client

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

A Client provides access to userspace WireGuard device information.

func New

func New() (*Client, error)

New creates a new Client.

func (*Client) Close

func (c *Client) Close() error

Close implements wginternal.Client.

func (*Client) ConfigureDevice

func (c *Client) ConfigureDevice(name string, cfg wgtypes.Config) error

ConfigureDevice implements wginternal.Client.

func (*Client) Device

func (c *Client) Device(name string) (*wgtypes.Device, error)

Device implements wginternal.Client.

func (*Client) Devices

func (c *Client) Devices() ([]*wgtypes.Device, error)

Devices implements wginternal.Client.

Source Files

client.go configure.go conn_unix.go doc.go parse.go

Version
v0.0.0-20241231184526-a9ab2273dd10 (latest)
Published
Dec 31, 2024
Platform
linux/amd64
Imports
15 packages
Last checked
1 month ago

Tools for package owners.