MCPcopy Create free account
hub / github.com/devspace-sh/devspace / NewVariableEnvProvider

Function NewVariableEnvProvider

pkg/devspace/pipeline/env/env.go:14–24  ·  view source on GitHub ↗
(base expand.Environ, envVars map[string]string)

Source from the content-addressed store, hash-verified

12}
13
14func NewVariableEnvProvider(base expand.Environ, envVars map[string]string) Provider {
15 additionalVars := map[string]string{}
16 for k, v := range envVars {
17 additionalVars[strings.ReplaceAll(k, enginetypes.DotReplacement, ".")] = v
18 }
19
20 return &provider{
21 base: base,
22 additionalVars: envVars,
23 }
24}
25
26type provider struct {
27 base expand.Environ

Callers 8

BuildMethod · 0.92
NewContextFunction · 0.92
AsDependencyMethod · 0.92
ExecuteMethod · 0.92
ImageBuildCLIMethod · 0.92
ResolveExpressionsFunction · 0.92
executeShellCommandFunction · 0.92
ExecuteCommandFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected