6641888667
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
13 lines
279 B
Go
13 lines
279 B
Go
package executors
|
|
|
|
import "github.com/docker/containerd"
|
|
|
|
var executors = make(map[string]func() containerd.Executor)
|
|
|
|
func Register(name string, e func() containerd.Executor) {
|
|
executors[name] = e
|
|
}
|
|
|
|
func Get(name string) func() containerd.Executor {
|
|
return executors[name]
|
|
}
|