Implement Exec + Start for tasks service
This splits up the exec creation and start in the tasks service Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -23,6 +23,8 @@ type Process interface {
|
||||
ResizePty(context.Context, ConsoleSize) error
|
||||
// CloseStdin closes the processes stdin
|
||||
CloseIO(context.Context) error
|
||||
// Start the container's user defined process
|
||||
Start(context.Context) error
|
||||
}
|
||||
|
||||
type Task interface {
|
||||
@@ -30,8 +32,6 @@ type Task interface {
|
||||
|
||||
// Information of the container
|
||||
Info() TaskInfo
|
||||
// Start the container's user defined process
|
||||
Start(context.Context) error
|
||||
// Pause pauses the container process
|
||||
Pause(context.Context) error
|
||||
// Resume unpauses the container process
|
||||
|
||||
Reference in New Issue
Block a user