Implement container signal
This commit is contained in:
parent
a2ddcc2232
commit
d34d482a5f
7 changed files with 119 additions and 14 deletions
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"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue