mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #5345 from shykes/engine-installer
engine.Installer: a standard interface for "installable" services
This commit is contained in:
commit
0fe48b0e59
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue