mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
28 lines
1.1 KiB
Go
28 lines
1.1 KiB
Go
package models
|
|
|
|
// APIHost - the host struct for API usage
|
|
type APIHost struct {
|
|
ID string `json:"id"`
|
|
Verbosity int `json:"verbosity"`
|
|
FirewallInUse string `json:"firewallinuse"`
|
|
Version string `json:"version"`
|
|
IPForwarding bool `json:"ipforwarding"`
|
|
DaemonInstalled bool `json:"daemoninstalled"`
|
|
HostPass string `json:"hostpass"`
|
|
Name string `json:"name"`
|
|
OS string `json:"os"`
|
|
Interface string `json:"interface"`
|
|
Debug bool `json:"debug"`
|
|
ListenPort int `json:"listenport"`
|
|
LocalAddress string `json:"localaddress"`
|
|
LocalRange string `json:"localrange"`
|
|
LocalListenPort int `json:"locallistenport"`
|
|
ProxyListenPort int `json:"proxy_listen_port"`
|
|
MTU int `json:"mtu" yaml:"mtu"`
|
|
Interfaces []Iface `json:"interfaces" yaml:"interfaces"`
|
|
PublicKey string `json:"publickey"`
|
|
MacAddress string `json:"macaddress"`
|
|
InternetGateway string `json:"internetgateway"`
|
|
Nodes []string `json:"nodes"`
|
|
}
|