containerd/execution/executors/executors.go
Kenfe-Mickael Laventure c857213b4c move work on execution service
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2016-12-05 14:15:03 -08:00

13 lines
286 B
Go

package executors
import "github.com/docker/containerd/execution"
var executors = make(map[string]func() execution.Executor)
func Register(name string, e func() execution.Executor) {
executors[name] = e
}
func Get(name string) func() execution.Executor {
return executors[name]
}