MCPcopy
hub / github.com/docker/compose / envResolver

Function envResolver

pkg/compose/envresolver.go:30–32  ·  view source on GitHub ↗

envResolver returns resolver for environment variables suitable for the current platform. Expected to be used with `MappingWithEquals.Resolve`. Updates in `environment` may not be reflected.

(environment map[string]string)

Source from the content-addressed store, hash-verified

28// Expected to be used with `MappingWithEquals.Resolve`.
29// Updates in `environment` may not be reflected.
30func envResolver(environment map[string]string) func(string) (string, bool) {
31 return envResolverWithCase(environment, isCaseInsensitiveEnvVars)
32}
33
34// envResolverWithCase returns resolver for environment variables with the specified case-sensitive condition.
35// Expected to be used with `MappingWithEquals.Resolve`.

Callers 2

resolveAndMergeBuildArgsFunction · 0.85
applyRunOptionsFunction · 0.85

Calls 1

envResolverWithCaseFunction · 0.85

Tested by

no test coverage detected