containerd/execution/executors/executors.go
Michael Crosby 32bf0f69fd Start work on Container and Process model
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2016-12-02 15:37:16 -08:00

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]
}