mirror of
				https://github.com/coredns/coredns.git
				synced 2025-11-04 03:03:14 -05:00 
			
		
		
		
	
		
			
	
	
		
			10 lines
		
	
	
		
			238 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			10 lines
		
	
	
		
			238 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package nomad
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// Ready signals when the plugin is ready for use.
							 | 
						||
| 
								 | 
							
								// In case of Nomad, when the ping to the Nomad API is successful
							 | 
						||
| 
								 | 
							
								// the plugin is ready.
							 | 
						||
| 
								 | 
							
								func (n Nomad) Ready() bool {
							 | 
						||
| 
								 | 
							
									client, _ := n.getClient()
							 | 
						||
| 
								 | 
							
									return client != nil
							 | 
						||
| 
								 | 
							
								}
							 |