api_host.go 1.1 KB

123456789101112131415161718192021222324252627
  1. package models
  2. // APIHost - the host struct for API usage
  3. type APIHost struct {
  4. ID string `json:"id"`
  5. Verbosity int `json:"verbosity"`
  6. FirewallInUse string `json:"firewallinuse"`
  7. Version string `json:"version"`
  8. IPForwarding bool `json:"ipforwarding"`
  9. DaemonInstalled bool `json:"daemoninstalled"`
  10. HostPass string `json:"hostpass"`
  11. Name string `json:"name"`
  12. OS string `json:"os"`
  13. Interface string `json:"interface"`
  14. Debug bool `json:"debug"`
  15. ListenPort int `json:"listenport"`
  16. LocalAddress string `json:"localaddress"`
  17. LocalRange string `json:"localrange"`
  18. LocalListenPort int `json:"locallistenport"`
  19. ProxyListenPort int `json:"proxy_listen_port"`
  20. MTU int `json:"mtu" yaml:"mtu"`
  21. Interfaces []Iface `json:"interfaces" yaml:"interfaces"`
  22. PublicKey string `json:"publickey"`
  23. MacAddress string `json:"macaddress"`
  24. InternetGateway string `json:"internetgateway"`
  25. Nodes []string `json:"nodes"`
  26. }