c857213b4c
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
13 lines
286 B
Go
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]
|
|
}
|