MCPcopy
hub / github.com/containerd/containerd / getSandbox

Method getSandbox

plugins/sandbox/controller.go:347–354  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

345}
346
347func (c *controllerLocal) getSandbox(ctx context.Context, id string) (runtimeAPI.TTRPCSandboxService, error) {
348 shim, err := c.shims.Get(ctx, id)
349 if err != nil {
350 return nil, err
351 }
352
353 return sandbox.NewClient(shim.Client())
354}

Callers 6

PlatformMethod · 0.95
StopMethod · 0.95
ShutdownMethod · 0.95
WaitMethod · 0.95
StatusMethod · 0.95
MetricsMethod · 0.95

Calls 3

NewClientFunction · 0.92
GetMethod · 0.65
ClientMethod · 0.65

Tested by

no test coverage detected