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

Function newShimTask

core/runtime/v2/shim.go:500–511  ·  view source on GitHub ↗
(shim ShimInstance)

Source from the content-addressed store, hash-verified

498}
499
500func newShimTask(shim ShimInstance) (*shimTask, error) {
501 _, version := shim.Endpoint()
502 taskClient, err := NewTaskClient(shim.Client(), version)
503 if err != nil {
504 return nil, err
505 }
506
507 return &shimTask{
508 ShimInstance: shim,
509 task: taskClient,
510 }, nil
511}
512
513func (s *shimTask) Shutdown(ctx context.Context) error {
514 _, err := s.task.Shutdown(ctx, &task.ShutdownRequest{

Callers 5

loadShimTaskFunction · 0.85
CreateMethod · 0.85
GetMethod · 0.85
TasksMethod · 0.85
DeleteMethod · 0.85

Calls 3

NewTaskClientFunction · 0.70
EndpointMethod · 0.65
ClientMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…