mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	engine.Installer: a standard interface for "installable" services
Installer is a standard interface for objects which can "install" themselves an engine by registering handlers. This can be used as an entrypoint for external plugins etc. Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
This commit is contained in:
		
							parent
							
								
									baf6cf9056
								
							
						
					
					
						commit
						9422451ac3
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
					@ -10,6 +10,13 @@ import (
 | 
				
			||||||
	"strings"
 | 
						"strings"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Installer is a standard interface for objects which can "install" themselves
 | 
				
			||||||
 | 
					// on an engine by registering handlers.
 | 
				
			||||||
 | 
					// This can be used as an entrypoint for external plugins etc.
 | 
				
			||||||
 | 
					type Installer interface {
 | 
				
			||||||
 | 
						Install(*Engine) error
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type Handler func(*Job) Status
 | 
					type Handler func(*Job) Status
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var globalHandlers map[string]Handler
 | 
					var globalHandlers map[string]Handler
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue