2023-07-14 21:56:22 +02:00
|
|
|
package dns
|
|
|
|
|
2024-10-02 18:24:22 +02:00
|
|
|
import (
|
|
|
|
"github.com/netbirdio/netbird/client/iface"
|
|
|
|
"github.com/netbirdio/netbird/client/iface/configurer"
|
|
|
|
"github.com/netbirdio/netbird/client/iface/device"
|
|
|
|
)
|
2023-07-14 21:56:22 +02:00
|
|
|
|
|
|
|
// WGIface defines subset methods of interface required for manager
|
|
|
|
type WGIface interface {
|
|
|
|
Name() string
|
|
|
|
Address() iface.WGAddress
|
|
|
|
IsUserspaceBind() bool
|
2024-10-02 18:24:22 +02:00
|
|
|
GetFilter() device.PacketFilter
|
|
|
|
GetDevice() *device.FilteredDevice
|
|
|
|
GetStats(peerKey string) (configurer.WGStats, error)
|
2023-07-14 21:56:22 +02:00
|
|
|
GetInterfaceGUIDString() (string, error)
|
|
|
|
}
|