MCPcopy Index your code
hub / github.com/cloudfoundry/java-buildpack / resolveContainer

Function resolveContainer

src/java/finalize/finalize.go:134–142  ·  view source on GitHub ↗

resolveContainer finds the container registered under the given name.

(ctx *common.Context, name string)

Source from the content-addressed store, hash-verified

132
133// resolveContainer finds the container registered under the given name.
134func 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.
145func resolveJRE(ctx *common.Context, name string) (jres.JRE, error) {

Callers 1

RunFunction · 0.85

Calls 3

GetMethod · 0.95
NewRegistryFunction · 0.92

Tested by

no test coverage detected