MCPcopy
hub / github.com/containerd/containerd / Start

Method Start

core/sandbox/proxy/controller.go:69–87  ·  view source on GitHub ↗
(ctx context.Context, sandboxID string)

Source from the content-addressed store, hash-verified

67}
68
69func (s *remoteSandboxController) Start(ctx context.Context, sandboxID string) (sandbox.ControllerInstance, error) {
70 resp, err := s.client.Start(ctx, &api.ControllerStartRequest{
71 SandboxID: sandboxID,
72 Sandboxer: s.sandboxerName,
73 })
74 if err != nil {
75 return sandbox.ControllerInstance{}, errgrpc.ToNative(err)
76 }
77
78 return sandbox.ControllerInstance{
79 SandboxID: sandboxID,
80 Pid: resp.GetPid(),
81 CreatedAt: resp.GetCreatedAt().AsTime(),
82 Labels: resp.GetLabels(),
83 Address: resp.GetAddress(),
84 Version: resp.GetVersion(),
85 Spec: resp.GetSpec(),
86 }, nil
87}
88
89func (s *remoteSandboxController) Platform(ctx context.Context, sandboxID string) (imagespec.Platform, error) {
90 resp, err := s.client.Platform(ctx, &api.ControllerPlatformRequest{

Callers

nothing calls this directly

Calls 7

StartMethod · 0.65
GetPidMethod · 0.65
GetLabelsMethod · 0.65
GetCreatedAtMethod · 0.45
GetAddressMethod · 0.45
GetVersionMethod · 0.45
GetSpecMethod · 0.45

Tested by

no test coverage detected