mirror of
				https://github.com/gravitl/netmaker.git
				synced 2025-10-31 20:22:44 +08:00 
			
		
		
		
	 78640f1342
			
		
	
	78640f1342
	
	
	
		
			
			* model changes * additional fields for extclient create * add DNS to extclient config * extclient name checks * update extclient * nmctl extclient * final tweaks * review comments * add extclientdns to node on ingress creation * fix to add ingress dns to api (#2296) --------- Co-authored-by: Aceix <aceixsmartX@gmail.com>
		
			
				
	
	
		
			29 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| package models
 | |
| 
 | |
| // ExtClient - struct for external clients
 | |
| type ExtClient struct {
 | |
| 	ClientID               string              `json:"clientid" bson:"clientid"`
 | |
| 	PrivateKey             string              `json:"privatekey" bson:"privatekey"`
 | |
| 	PublicKey              string              `json:"publickey" bson:"publickey"`
 | |
| 	Network                string              `json:"network" bson:"network"`
 | |
| 	DNS                    string              `json:"dns" bson:"dns"`
 | |
| 	Address                string              `json:"address" bson:"address"`
 | |
| 	Address6               string              `json:"address6" bson:"address6"`
 | |
| 	ExtraAllowedIPs        []string            `json:"extraallowedips" bson:"extraallowedips"`
 | |
| 	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"`
 | |
| 	ACLs                   map[string]struct{} `json:"acls,omitempty" bson:"acls,omitempty"`
 | |
| }
 | |
| 
 | |
| // 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"`
 | |
| }
 |