mirror of
				https://github.com/gravitl/netmaker.git
				synced 2025-10-30 19:56:28 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| package logic
 | |
| 
 | |
| import (
 | |
| 	"github.com/google/uuid"
 | |
| 	"github.com/gravitl/netmaker/models"
 | |
| )
 | |
| 
 | |
| // EnterpriseCheckFuncs - can be set to run functions for EE
 | |
| var EnterpriseCheckFuncs []func()
 | |
| 
 | |
| // EnterpriseFailoverFunc - interface to control failover funcs
 | |
| var EnterpriseFailoverFunc func(node *models.Node) error
 | |
| 
 | |
| // EnterpriseResetFailoverFunc - interface to control reset failover funcs
 | |
| var EnterpriseResetFailoverFunc func(network string) error
 | |
| 
 | |
| // EnterpriseResetAllPeersFailovers - resets all nodes that are considering a node to be failover worthy (inclusive)
 | |
| var EnterpriseResetAllPeersFailovers func(nodeid uuid.UUID, network string) error
 | |
| 
 | |
| // == Join, Checkin, and Leave for Server ==
 | |
| 
 | |
| // KUBERNETES_LISTEN_PORT - starting port for Kubernetes in order to use NodePort range
 | |
| const KUBERNETES_LISTEN_PORT = 31821
 | |
| 
 | |
| // KUBERNETES_SERVER_MTU - ideal mtu for kubernetes deployments right now
 | |
| const KUBERNETES_SERVER_MTU = 1024
 | |
| 
 | |
| // EnterpriseCheck - Runs enterprise functions if presented
 | |
| func EnterpriseCheck() {
 | |
| 	for _, check := range EnterpriseCheckFuncs {
 | |
| 		check()
 | |
| 	}
 | |
| }
 | 
