Skip to content

Commit

Permalink
Merge pull request openshift#102 from crosbymichael/add-exec
Browse files Browse the repository at this point in the history
Add Start to container API
  • Loading branch information
vmarmol committed Jul 17, 2014
2 parents 3c03998 + 8f3a8cf commit 302da30
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions container.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ type Container interface {
// Returns the current config of the container.
Config() *Config

// Start a process inside the container. Returns the PID of the new process (in the caller process's namespace) and a channel that will return the exit status of the process whenever it dies.
//
// Errors: container no longer exists,
// config is invalid,
// container is paused,
// system error.
Start(*ProcessConfig) (pid int, exitChan chan int, err error)

// Destroys the container after killing all running processes.
//
// Any event registrations are removed before the container is destroyed.
Expand Down

0 comments on commit 302da30

Please sign in to comment.