package wginternal

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

Package wginternal contains shared internal types for wgctrl.

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

Index

Variables

var ErrReadOnly = errors.New("driver is read-only")

ErrReadOnly indicates that the driver backing a device is read-only. It is a sentinel value used in integration tests. TODO(mdlayher): consider exposing in API.

Types

type Client

type Client interface {
	io.Closer
	Devices() ([]*wgtypes.Device, error)
	Device(name string) (*wgtypes.Device, error)
	ConfigureDevice(name string, cfg wgtypes.Config) error
}

A Client is a type which can control a WireGuard device.

Source Files

client.go doc.go

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

Tools for package owners.