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) Upstream-commit: 9422451ac3f541a17daba0d5f6dc8b40a6edc9e9 Component: engine
This commit is contained in:
@ -10,6 +10,13 @@ import (
|
||||
"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
|
||||
|
||||
var globalHandlers map[string]Handler
|
||||
|
||||
Reference in New Issue
Block a user