Start work on Container and Process model
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
6641888667
commit
32bf0f69fd
38 changed files with 525 additions and 353 deletions
13
execution/executors/executors.go
Normal file
13
execution/executors/executors.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
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]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue