mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Add method to expose container id
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
		
							parent
							
								
									d207c30949
								
							
						
					
					
						commit
						cfaa36e51a
					
				@ -20,4 +20,5 @@ type TailscaleClient interface {
 | 
				
			|||||||
	WaitForReady() error
 | 
						WaitForReady() error
 | 
				
			||||||
	WaitForPeers(expected int) error
 | 
						WaitForPeers(expected int) error
 | 
				
			||||||
	Ping(hostnameOrIP string) error
 | 
						Ping(hostnameOrIP string) error
 | 
				
			||||||
 | 
						ID() string
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -176,6 +176,10 @@ func (t *TailscaleInContainer) Version() string {
 | 
				
			|||||||
	return t.version
 | 
						return t.version
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (t *TailscaleInContainer) ID() string {
 | 
				
			||||||
 | 
						return t.container.Container.ID
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (t *TailscaleInContainer) Execute(
 | 
					func (t *TailscaleInContainer) Execute(
 | 
				
			||||||
	command []string,
 | 
						command []string,
 | 
				
			||||||
) (string, string, error) {
 | 
					) (string, string, error) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user