MCPcopy Index your code
hub / github.com/containerd/containerd / Pause

Method Pause

core/runtime/v2/shim.go:687–694  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

685}
686
687func (s *shimTask) Pause(ctx context.Context) error {
688 if _, err := s.task.Pause(ctx, &task.PauseRequest{
689 ID: s.ID(),
690 }); err != nil {
691 return errgrpc.ToNative(err)
692 }
693 return nil
694}
695
696func (s *shimTask) Resume(ctx context.Context) error {
697 if _, err := s.task.Resume(ctx, &task.ResumeRequest{

Callers

nothing calls this directly

Calls 2

PauseMethod · 0.65
IDMethod · 0.65

Tested by

no test coverage detected