(ctx context.Context, id string)
| 1220 | } |
| 1221 | |
| 1222 | func (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 | } |
no test coverage detected