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

Function loadConfigFiles

cli/command/stack/loader.go:144–156  ·  view source on GitHub ↗
(filenames []string, stdin io.Reader)

Source from the content-addressed store, hash-verified

142}
143
144func loadConfigFiles(filenames []string, stdin io.Reader) ([]composetypes.ConfigFile, error) {
145 configFiles := make([]composetypes.ConfigFile, 0, len(filenames))
146
147 for _, filename := range filenames {
148 configFile, err := loadConfigFile(filename, stdin)
149 if err != nil {
150 return configFiles, err
151 }
152 configFiles = append(configFiles, *configFile)
153 }
154
155 return configFiles, nil
156}
157
158func loadConfigFile(filename string, stdin io.Reader) (*composetypes.ConfigFile, error) {
159 var bytes []byte

Callers 1

getConfigDetailsFunction · 0.85

Calls 1

loadConfigFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…