Add KillOpts for killing all processes

Fixes #1431

This adds KillOpts so that a client can specify when they want to kill a
single process or all the processes inside a container.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-08-28 11:10:15 -04:00
parent b9879d46f4
commit ed6b8fb0aa
5 changed files with 97 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ type resizer interface {
}
type killer interface {
Kill(gocontext.Context, syscall.Signal) error
Kill(gocontext.Context, syscall.Signal, ...containerd.KillOpts) error
}
func withEnv(context *cli.Context) containerd.SpecOpts {