Move runtime implementation types to pkg

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2015-12-01 11:56:08 -08:00
parent 779cb69e6d
commit c24abdde1b
8 changed files with 60 additions and 51 deletions

9
runtime/runtime.go Normal file
View file

@ -0,0 +1,9 @@
package runtime
import "github.com/opencontainers/specs"
// runtime handles containers, containers handle their own actions.
type Runtime interface {
Create(id, bundlePath string, stdio *Stdio) (Container, error)
StartProcess(Container, specs.Process, *Stdio) (Process, error)
}