This commit is contained in:
Christoph
2026-12-03 14:56:54 +01:00
parent 10507d54c3
commit d5a74a10ac
18 changed files with 344 additions and 436 deletions
+8
View File
@@ -4,6 +4,8 @@ import (
"io"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"github.com/h44z/wg-portal/internal/domain"
)
// A WireGuardClient is a type which can control a WireGuard device.
@@ -13,3 +15,9 @@ type WireGuardClient interface {
Device(name string) (*wgtypes.Device, error)
ConfigureDevice(name string, cfg wgtypes.Config) error
}
// WireGuardDevice carries the device and its backend options from the same read.
type WireGuardDevice struct {
*wgtypes.Device
AmneziaWG domain.AmneziaWGOptions
}