2021-05-20 01:59:10 +08:00
|
|
|
package models
|
|
|
|
|
2021-10-09 03:07:12 +08:00
|
|
|
// ExtClient - struct for external clients
|
2021-05-20 01:59:10 +08:00
|
|
|
type ExtClient struct {
|
2023-03-14 03:06:07 +08:00
|
|
|
ClientID string `json:"clientid" bson:"clientid"`
|
|
|
|
PrivateKey string `json:"privatekey" bson:"privatekey"`
|
|
|
|
PublicKey string `json:"publickey" bson:"publickey"`
|
|
|
|
Network string `json:"network" bson:"network"`
|
2023-05-17 22:58:03 +08:00
|
|
|
DNS string `json:"dns" bson:"dns"`
|
2023-03-14 03:06:07 +08:00
|
|
|
Address string `json:"address" bson:"address"`
|
|
|
|
Address6 string `json:"address6" bson:"address6"`
|
2023-05-17 22:58:03 +08:00
|
|
|
ExtraAllowedIPs []string `json:"extraallowedips" bson:"extraallowedips"`
|
2023-03-14 03:06:07 +08:00
|
|
|
IngressGatewayID string `json:"ingressgatewayid" bson:"ingressgatewayid"`
|
|
|
|
IngressGatewayEndpoint string `json:"ingressgatewayendpoint" bson:"ingressgatewayendpoint"`
|
|
|
|
LastModified int64 `json:"lastmodified" bson:"lastmodified"`
|
|
|
|
Enabled bool `json:"enabled" bson:"enabled"`
|
|
|
|
OwnerID string `json:"ownerid" bson:"ownerid"`
|
2023-07-26 13:02:54 +08:00
|
|
|
DeniedACLs map[string]struct{} `json:"deniednodeacls" bson:"acls,omitempty"`
|
2021-08-25 04:08:34 +08:00
|
|
|
}
|
2023-05-17 22:58:03 +08:00
|
|
|
|
|
|
|
// CustomExtClient - struct for CustomExtClient params
|
|
|
|
type CustomExtClient struct {
|
2023-07-26 13:02:54 +08:00
|
|
|
ClientID string `json:"clientid,omitempty"`
|
|
|
|
PublicKey string `json:"publickey,omitempty"`
|
|
|
|
DNS string `json:"dns,omitempty"`
|
|
|
|
ExtraAllowedIPs []string `json:"extraallowedips,omitempty"`
|
|
|
|
Enabled bool `json:"enabled,omitempty"`
|
|
|
|
DeniedACLs map[string]struct{} `json:"deniednodeacls" bson:"acls,omitempty"`
|
2023-05-17 22:58:03 +08:00
|
|
|
}
|