mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-31 21:17:43 +09:00 
			
		
		
		
	create DB struct
This is step one in detaching the Database layer from Headscale (h). The ultimate goal is to have all function that does database operations in its own package, and keep the business logic and writing separate. Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
		
				
					committed by
					
						 Kristoffer Dalby
						Kristoffer Dalby
					
				
			
			
				
	
			
			
			
						parent
						
							b01f1f1867
						
					
				
				
					commit
					14e29a7bee
				
			| @@ -15,6 +15,7 @@ import ( | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/juanfont/headscale/hscontrol" | ||||
| 	"github.com/juanfont/headscale/hscontrol/util" | ||||
| 	"github.com/juanfont/headscale/integration/dockertestutil" | ||||
| 	"github.com/juanfont/headscale/integration/hsic" | ||||
| 	"github.com/ory/dockertest/v3" | ||||
| @@ -220,7 +221,7 @@ func (s *AuthOIDCScenario) runMockOIDC(accessTTL time.Duration) (*hscontrol.OIDC | ||||
| 	} | ||||
| 	portNotation := fmt.Sprintf("%d/tcp", port) | ||||
|  | ||||
| 	hash, _ := hscontrol.GenerateRandomStringDNSSafe(hsicOIDCMockHashLength) | ||||
| 	hash, _ := util.GenerateRandomStringDNSSafe(hsicOIDCMockHashLength) | ||||
|  | ||||
| 	hostname := fmt.Sprintf("hs-oidcmock-%s", hash) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user