wginternal

package
v0.0.0-...-925a1e7 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 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

This section is empty.

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