mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-11 09:21:49 +01:00
17 lines
431 B
Go
17 lines
431 B
Go
|
package iface
|
||
|
|
||
|
import (
|
||
|
"github.com/netbirdio/netbird/client/iface/bind"
|
||
|
"github.com/netbirdio/netbird/client/iface/device"
|
||
|
)
|
||
|
|
||
|
type WGTunDevice interface {
|
||
|
Create(routes []string, dns string, searchDomains []string) (device.WGConfigurer, error)
|
||
|
Up() (*bind.UniversalUDPMuxDefault, error)
|
||
|
UpdateAddr(address WGAddress) error
|
||
|
WgAddress() WGAddress
|
||
|
DeviceName() string
|
||
|
Close() error
|
||
|
FilteredDevice() *device.FilteredDevice
|
||
|
}
|