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