resolveContainer finds the container registered under the given name.
(ctx *common.Context, name string)
| 132 | |
| 133 | // resolveContainer finds the container registered under the given name. |
| 134 | func resolveContainer(ctx *common.Context, name string) (containers.Container, error) { |
| 135 | registry := containers.NewRegistry(ctx) |
| 136 | registry.RegisterStandardContainers() |
| 137 | container := registry.Get(name) |
| 138 | if container == nil { |
| 139 | return nil, fmt.Errorf("no container registered with name %q", name) |
| 140 | } |
| 141 | return container, nil |
| 142 | } |
| 143 | |
| 144 | // resolveJRE finds the JRE registered under the given name. |
| 145 | func resolveJRE(ctx *common.Context, name string) (jres.JRE, error) { |
no test coverage detected