Move service to execution package

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2016-12-05 14:33:31 -08:00
parent c857213b4c
commit bde30191f4
4 changed files with 8 additions and 30 deletions

View file

@ -10,16 +10,10 @@ import (
"github.com/crosbymichael/go-runc"
"github.com/docker/containerd/execution"
"github.com/docker/containerd/executors"
)
var ErrRootEmpty = errors.New("oci: runtime root cannot be an empty string")
func init() {
executors.Register("oci", New)
executors.Register("runc", New)
}
func New(root string) *OCIRuntime {
return &OCIRuntime{
root: root,