Move runtime implementation types to pkg
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
779cb69e6d
commit
c24abdde1b
8 changed files with 60 additions and 51 deletions
9
runtime/runtime.go
Normal file
9
runtime/runtime.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue