Implement container signal
This commit is contained in:
13
event.go
13
event.go
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user