MCPcopy Create free account
hub / github.com/docker/cli / loadYAML

Function loadYAML

cli/compose/loader/loader_test.go:37–39  ·  view source on GitHub ↗
(yaml string)

Source from the content-addressed store, hash-verified

35}
36
37func loadYAML(yaml string) (*types.Config, error) {
38 return loadYAMLWithEnv(yaml, nil)
39}
40
41func loadYAMLWithEnv(yaml string, env map[string]string) (*types.Config, error) {
42 dict, err := ParseYAML([]byte(yaml))

Callers 15

TestLoadExtrasFunction · 0.85
TestLoadV31Function · 0.85
TestLoadV33Function · 0.85
TestLoadV38Function · 0.85
TestParseAndLoadFunction · 0.85
TestNonStringKeysFunction · 0.85
TestSupportedVersionFunction · 0.85
TestUnsupportedVersionFunction · 0.85
TestInvalidVersionFunction · 0.85
TestV1UnsupportedFunction · 0.85
TestNonMappingObjectFunction · 0.85

Calls 1

loadYAMLWithEnvFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…