extclient.go 1.9 KB

12345678910111213141516171819202122232425262728293031
  1. package models
  2. // ExtClient - struct for external clients
  3. type ExtClient struct {
  4. ClientID string `json:"clientid" bson:"clientid"`
  5. PrivateKey string `json:"privatekey" bson:"privatekey"`
  6. PublicKey string `json:"publickey" bson:"publickey"`
  7. Network string `json:"network" bson:"network"`
  8. DNS string `json:"dns" bson:"dns"`
  9. Address string `json:"address" bson:"address"`
  10. Address6 string `json:"address6" bson:"address6"`
  11. ExtraAllowedIPs []string `json:"extraallowedips" bson:"extraallowedips"`
  12. IngressGatewayID string `json:"ingressgatewayid" bson:"ingressgatewayid"`
  13. IngressGatewayEndpoint string `json:"ingressgatewayendpoint" bson:"ingressgatewayendpoint"`
  14. LastModified int64 `json:"lastmodified" bson:"lastmodified"`
  15. Enabled bool `json:"enabled" bson:"enabled"`
  16. OwnerID string `json:"ownerid" bson:"ownerid"`
  17. DeniedACLs map[string]struct{} `json:"deniednodeacls" bson:"acls,omitempty"`
  18. RemoteAccessClientID string `json:"remote_access_client_id"`
  19. }
  20. // CustomExtClient - struct for CustomExtClient params
  21. type CustomExtClient struct {
  22. ClientID string `json:"clientid,omitempty"`
  23. PublicKey string `json:"publickey,omitempty"`
  24. DNS string `json:"dns,omitempty"`
  25. ExtraAllowedIPs []string `json:"extraallowedips,omitempty"`
  26. Enabled bool `json:"enabled,omitempty"`
  27. DeniedACLs map[string]struct{} `json:"deniednodeacls" bson:"acls,omitempty"`
  28. RemoteAccessClientID string `json:"remote_access_client_id"`
  29. }