mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
extclient info model changes
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"net"
|
||||
|
||||
proxy_models "github.com/gravitl/netclient/nmproxy/models"
|
||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||
)
|
||||
@@ -31,9 +29,17 @@ type HostPeerUpdate struct {
|
||||
}
|
||||
|
||||
type IngressInfo struct {
|
||||
IngressGwAddr map[string]net.IPNet
|
||||
ExtPeers map[string]wgtypes.PeerConfig
|
||||
Peers map[string][]wgtypes.PeerConfig
|
||||
ExtPeers map[string]ExtClientInfo
|
||||
}
|
||||
|
||||
type PeerExtInfo struct {
|
||||
PeerConfig wgtypes.PeerConfig
|
||||
Allow bool
|
||||
}
|
||||
|
||||
type ExtClientInfo struct {
|
||||
ExtPeer wgtypes.PeerConfig
|
||||
Peers map[string]PeerExtInfo
|
||||
}
|
||||
|
||||
// NetworkInfo - struct for network info
|
||||
|
Reference in New Issue
Block a user