mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Defince control server interface
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
		
							parent
							
								
									fa8b02a83f
								
							
						
					
					
						commit
						308b9e78a1
					
				
							
								
								
									
										13
									
								
								integration/control.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								integration/control.go
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,13 @@ | |||||||
|  | package integration | ||||||
|  | 
 | ||||||
|  | import v1 "github.com/juanfont/headscale/gen/go/headscale/v1" | ||||||
|  | 
 | ||||||
|  | type ControlServer interface { | ||||||
|  | 	Shutdown() error | ||||||
|  | 	GetHealthEndpoint() string | ||||||
|  | 	GetEndpoint() string | ||||||
|  | 	WaitForReady() error | ||||||
|  | 	CreateNamespace(namespace string) error | ||||||
|  | 	CreateAuthKey(namespace string) (*v1.PreAuthKey, error) | ||||||
|  | 	ListNodes(namespace string) ([]*v1.Machine, error) | ||||||
|  | } | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user