MCPcopy Index your code
hub / github.com/docker/cli / buildConfigDetails

Function buildConfigDetails

cli/compose/loader/loader_test.go:22–35  ·  view source on GitHub ↗
(source map[string]any, env map[string]string)

Source from the content-addressed store, hash-verified

20)
21
22func buildConfigDetails(source map[string]any, env map[string]string) types.ConfigDetails {
23 workingDir, err := os.Getwd()
24 if err != nil {
25 panic(err)
26 }
27
28 return types.ConfigDetails{
29 WorkingDir: workingDir,
30 ConfigFiles: []types.ConfigFile{
31 {Filename: "filename.yml", Config: source},
32 },
33 Environment: env,
34 }
35}
36
37func loadYAML(yaml string) (*types.Config, error) {
38 return loadYAMLWithEnv(yaml, nil)

Callers 9

TestMarshallConfigFunction · 0.85
TestJSONMarshallConfigFunction · 0.85
loadYAMLWithEnvFunction · 0.85
TestLoadFunction · 0.85
TestDiscardEnvFileOptionFunction · 0.85
TestBuildPropertiesFunction · 0.85
TestDeprecatedPropertiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…