MCPcopy
hub / github.com/containerd/containerd / Kill

Method Kill

core/runtime/v2/shim.go:715–724  ·  view source on GitHub ↗
(ctx context.Context, signal uint32, all bool)

Source from the content-addressed store, hash-verified

713}
714
715func (s *shimTask) Kill(ctx context.Context, signal uint32, all bool) error {
716 if _, err := s.task.Kill(ctx, &task.KillRequest{
717 ID: s.ID(),
718 Signal: signal,
719 All: all,
720 }); err != nil {
721 return errgrpc.ToNative(err)
722 }
723 return nil
724}
725
726func (s *shimTask) Exec(ctx context.Context, id string, opts runtime.ExecOpts) (runtime.ExecProcess, error) {
727 if err := identifiers.Validate(id); err != nil {

Callers

nothing calls this directly

Calls 2

KillMethod · 0.65
IDMethod · 0.65

Tested by

no test coverage detected