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,7 @@
package containerd
import "os"
type Event interface {
String() string
}
@ -44,3 +46,14 @@ type GetContainersEvent struct {
func (c *GetContainersEvent) String() string {
return "get containers"
}
type SignalEvent struct {
ID string
Pid int
Signal os.Signal
Err chan error
}
func (s *SignalEvent) String() string {
return "signal event"
}