Add Processes() to client

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-05-31 13:25:39 -07:00
parent 8ec5c30d83
commit ff54c88e99
3 changed files with 89 additions and 0 deletions

View File

@@ -26,10 +26,13 @@ type process struct {
spec *specs.Process
}
// Pid returns the pid of the process
// The pid is not set until start is called and returns
func (p *process) Pid() uint32 {
return p.pid
}
// Start starts the exec process
func (p *process) Start(ctx context.Context) error {
data, err := json.Marshal(p.spec)
if err != nil {