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
17
execution/executor.go
Normal file
17
execution/executor.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package execution
|
||||
|
||||
import "io"
|
||||
|
||||
type CreateOpts struct {
|
||||
Bundle string
|
||||
Stdin io.Reader
|
||||
Stdout io.Writer
|
||||
Stderr io.Writer
|
||||
}
|
||||
|
||||
type Executor interface {
|
||||
Create(id string, o CreateOpts) (*Container, error)
|
||||
List() ([]*Container, error)
|
||||
Load(id string) (*Container, error)
|
||||
Delete(string) error
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue