Implement container signal

This commit is contained in:
Michael Crosby
2015-11-10 13:44:35 -08:00
parent a2ddcc2232
commit d34d482a5f
7 changed files with 119 additions and 14 deletions

View File

@@ -1,5 +1,12 @@
package containerd
import "os"
type Process interface {
Pid() int
Signal(os.Signal) error
}
type Container interface {
ID() string
Start() error
@@ -7,5 +14,5 @@ type Container interface {
Pid() (int, error)
SetExited(status int)
Delete() error
Processes() ([]int, error)
Processes() ([]Process, error)
}