mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-24 17:30:29 +08:00
comments
This commit is contained in:
@@ -31,16 +31,19 @@ type HostPeerUpdate struct {
|
|||||||
IngressInfo IngressInfo `json:"ingress_info" bson:"ext_peers" yaml:"ext_peers"`
|
IngressInfo IngressInfo `json:"ingress_info" bson:"ext_peers" yaml:"ext_peers"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IngressInfo - struct for ingress info
|
||||||
type IngressInfo struct {
|
type IngressInfo struct {
|
||||||
ExtPeers map[string]ExtClientInfo `json:"ext_peers" yaml:"ext_peers"`
|
ExtPeers map[string]ExtClientInfo `json:"ext_peers" yaml:"ext_peers"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PeerExtInfo - struct for peer info for an ext. client
|
||||||
type PeerExtInfo struct {
|
type PeerExtInfo struct {
|
||||||
PeerAddr net.IPNet `json:"peer_addr" yaml:"peer_addr"`
|
PeerAddr net.IPNet `json:"peer_addr" yaml:"peer_addr"`
|
||||||
PeerKey string `json:"peer_key" yaml:"peer_key"`
|
PeerKey string `json:"peer_key" yaml:"peer_key"`
|
||||||
Allow bool `json:"allow" yaml:"allow"`
|
Allow bool `json:"allow" yaml:"allow"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ExtClientInfo - struct for ext. client and it's peers
|
||||||
type ExtClientInfo struct {
|
type ExtClientInfo struct {
|
||||||
IngGwAddr net.IPNet `json:"ingress_gw_addr" yaml:"ingress_gw_addr"`
|
IngGwAddr net.IPNet `json:"ingress_gw_addr" yaml:"ingress_gw_addr"`
|
||||||
Masquerade bool `json:"masquerade" yaml:"masquerade"`
|
Masquerade bool `json:"masquerade" yaml:"masquerade"`
|
||||||
|
|||||||
Reference in New Issue
Block a user