mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 15:26:04 +08:00
add json tags
This commit is contained in:
parent
62e7cc366e
commit
be741c1b44
|
@ -32,20 +32,20 @@ type HostPeerUpdate struct {
|
|||
}
|
||||
|
||||
type IngressInfo struct {
|
||||
ExtPeers map[string]ExtClientInfo
|
||||
ExtPeers map[string]ExtClientInfo `json:"ext_peers" yaml:"ext_peers"`
|
||||
}
|
||||
|
||||
type PeerExtInfo struct {
|
||||
PeerAddr net.IPNet
|
||||
PeerKey wgtypes.Key
|
||||
Allow bool
|
||||
PeerAddr net.IPNet `json:"peer_addr" yaml:"peer_addr"`
|
||||
PeerKey wgtypes.Key `json:"peer_key" yaml:"peer_key"`
|
||||
Allow bool `json:"allow" yaml:"allow"`
|
||||
}
|
||||
|
||||
type ExtClientInfo struct {
|
||||
Masquerade bool
|
||||
ExtPeerAddr net.IPNet
|
||||
ExtPeerKey wgtypes.Key
|
||||
Peers map[string]PeerExtInfo
|
||||
Masquerade bool `json:"masquerade" yaml:"masquerade"`
|
||||
ExtPeerAddr net.IPNet `json:"ext_peer_addr" yaml:"ext_peer_addr"`
|
||||
ExtPeerKey wgtypes.Key `json:"ext_peer_key" yaml:"ext_peer_key"`
|
||||
Peers map[string]PeerExtInfo `json:"peers" yaml:"peers"`
|
||||
}
|
||||
|
||||
// NetworkInfo - struct for network info
|
||||
|
|
Loading…
Reference in a new issue