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

Function loadYAMLWithEnv

cli/compose/loader/loader_test.go:41–48  ·  view source on GitHub ↗
(yaml string, env map[string]string)

Source from the content-addressed store, hash-verified

39}
40
41func loadYAMLWithEnv(yaml string, env map[string]string) (*types.Config, error) {
42 dict, err := ParseYAML([]byte(yaml))
43 if err != nil {
44 return nil, err
45 }
46
47 return Load(buildConfigDetails(dict, env))
48}
49
50var sampleYAML = `
51version: "3"

Callers 4

loadYAMLFunction · 0.85
TestLoadWithEnvironmentFunction · 0.85
TestFullExampleFunction · 0.85

Calls 3

ParseYAMLFunction · 0.85
buildConfigDetailsFunction · 0.85
LoadFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…