mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-06 17:08:53 +00:00
21 lines
440 B
Go
21 lines
440 B
Go
package iface
|
|
|
|
import (
|
|
"net"
|
|
|
|
"github.com/netbirdio/netbird/client/iface"
|
|
"github.com/netbirdio/netbird/client/iface/device"
|
|
)
|
|
|
|
type wgIfaceBase interface {
|
|
AddAllowedIP(peerKey string, allowedIP string) error
|
|
RemoveAllowedIP(peerKey string, allowedIP string) error
|
|
|
|
Name() string
|
|
Address() iface.WGAddress
|
|
ToInterface() *net.Interface
|
|
IsUserspaceBind() bool
|
|
GetFilter() device.PacketFilter
|
|
GetDevice() *device.FilteredDevice
|
|
}
|