MCPcopy
hub / github.com/containerd/containerd / runtimeInfo

Method runtimeInfo

internal/cri/server/container_create.go:1222–1233  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

1220}
1221
1222func (c *criService) runtimeInfo(ctx context.Context, id string) (string, typeurl.Any, error) {
1223 sandboxInfo, err := c.client.SandboxStore().Get(ctx, id)
1224 if err == nil {
1225 return sandboxInfo.Runtime.Name, sandboxInfo.Runtime.Options, nil
1226 }
1227 sandboxContainer, legacyErr := c.client.ContainerService().Get(ctx, id)
1228 if legacyErr == nil {
1229 return sandboxContainer.Runtime.Name, sandboxContainer.Runtime.Options, nil
1230 }
1231
1232 return "", nil, err
1233}

Callers 1

createContainerMethod · 0.95

Implementers 1

criServiceinternal/cri/server/service.go

Calls 3

ContainerServiceMethod · 0.80
GetMethod · 0.65
SandboxStoreMethod · 0.65

Tested by

no test coverage detected