mirror of
https://github.com/h44z/wg-portal
synced 2025-02-26 05:49:14 +00:00
16 lines
337 B
Go
16 lines
337 B
Go
|
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
|
||
|
}
|