Newer
Older
wg-portal / internal / lowlevel / wgctrl.go
@Christoph Haas Christoph Haas on 6 Oct 2021 337 bytes WIP: new package structure
package lowlevel

import (
	"io"

	"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
)

// A WireGuardClient is a type which can control a WireGuard device.
type WireGuardClient interface {
	io.Closer
	Devices() ([]*wgtypes.Device, error)
	Device(name string) (*wgtypes.Device, error)
	ConfigureDevice(name string, cfg wgtypes.Config) error
}