extclient.go 1.7 KB

1234567891011121314151617181920212223242526272829
  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. }
  19. // CustomExtClient - struct for CustomExtClient params
  20. type CustomExtClient struct {
  21. ClientID string `json:"clientid,omitempty"`
  22. PublicKey string `json:"publickey,omitempty"`
  23. DNS string `json:"dns,omitempty"`
  24. ExtraAllowedIPs []string `json:"extraallowedips,omitempty"`
  25. Enabled bool `json:"enabled,omitempty"`
  26. DeniedACLs map[string]struct{} `json:"deniednodeacls" bson:"acls,omitempty"`
  27. }