MCPcopy Create free account
hub / github.com/openfaas/faasd / LoadComposeFile

Function LoadComposeFile

pkg/supervisor.go:394–396  ·  view source on GitHub ↗

LoadComposeFile is a helper method for loading a docker-compose file

(wd string, file string)

Source from the content-addressed store, hash-verified

392
393// LoadComposeFile is a helper method for loading a docker-compose file
394func LoadComposeFile(wd string, file string) (*compose.Config, error) {
395 return LoadComposeFileWithArch(wd, file, env.GetClientArch)
396}
397
398// LoadComposeFileWithArch is a helper method for loading a docker-compose file
399func LoadComposeFileWithArch(wd string, file string, archGetter ArchGetter) (*compose.Config, error) {

Callers 1

loadServiceDefinitionFunction · 0.92

Calls 1

LoadComposeFileWithArchFunction · 0.85

Tested by

no test coverage detected