|
@@ -21,20 +21,29 @@ type ExtClient struct {
|
|
|
PostUp string `json:"postup" bson:"postup"`
|
|
|
PostDown string `json:"postdown" bson:"postdown"`
|
|
|
Tags map[TagID]struct{} `json:"tags"`
|
|
|
+ Os string `json:"os"`
|
|
|
+ DeviceName string `json:"device_name"`
|
|
|
+ PublicEndpoint string `json:"public_endpoint"`
|
|
|
+ Country string `json:"country"`
|
|
|
}
|
|
|
|
|
|
// CustomExtClient - struct for CustomExtClient params
|
|
|
type CustomExtClient struct {
|
|
|
- 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"`
|
|
|
- RemoteAccessClientID string `json:"remote_access_client_id"` // unique ID (MAC address) of RAC machine
|
|
|
- PostUp string `json:"postup" bson:"postup" validate:"max=1024"`
|
|
|
- PostDown string `json:"postdown" bson:"postdown" validate:"max=1024"`
|
|
|
- Tags map[TagID]struct{} `json:"tags"`
|
|
|
+ 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"`
|
|
|
+ RemoteAccessClientID string `json:"remote_access_client_id"` // unique ID (MAC address) of RAC machine
|
|
|
+ PostUp string `json:"postup" bson:"postup" validate:"max=1024"`
|
|
|
+ PostDown string `json:"postdown" bson:"postdown" validate:"max=1024"`
|
|
|
+ Tags map[TagID]struct{} `json:"tags"`
|
|
|
+ Os string `json:"os"`
|
|
|
+ DeviceName string `json:"device_name"`
|
|
|
+ IsAlreadyConnectedToInetGw bool `json:"is_already_connected_to_inet_gw"`
|
|
|
+ PublicEndpoint string `json:"public_endpoint"`
|
|
|
+ Country string `json:"country"`
|
|
|
}
|
|
|
|
|
|
func (ext *ExtClient) ConvertToStaticNode() Node {
|