wginternal

package
v0.0.0-...-9000483 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

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

Constants

View Source
const (
	WGDEVICE_A_JC   = 0x9
	WGDEVICE_A_JMIN = 0xA
	WGDEVICE_A_JMAX = 0xB
	WGDEVICE_A_S1   = 0xC
	WGDEVICE_A_S2   = 0xD
	WGDEVICE_A_H1   = 0xE
	WGDEVICE_A_H2   = 0xF
	WGDEVICE_A_H3   = 0x10
	WGDEVICE_A_H4   = 0x11
)

Variables

View Source
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.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

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