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

Function fullExampleConfig

cli/compose/loader/full-struct_test.go:12–29  ·  view source on GitHub ↗
(workingDir, homeDir string)

Source from the content-addressed store, hash-verified

10)
11
12func fullExampleConfig(workingDir, homeDir string) *types.Config {
13 return &types.Config{
14 Version: "3.13",
15 Services: services(workingDir, homeDir),
16 Networks: networks(),
17 Volumes: volumes(),
18 Configs: configs(workingDir),
19 Secrets: secrets(workingDir),
20 Extras: map[string]any{
21 "x-foo": "bar",
22 "x-bar": "baz",
23 "x-nested": map[string]any{
24 "foo": "bar",
25 "bar": "baz",
26 },
27 },
28 }
29}
30
31func services(workingDir, homeDir string) []types.ServiceConfig {
32 return []types.ServiceConfig{

Callers 3

TestMarshallConfigFunction · 0.85
TestJSONMarshallConfigFunction · 0.85
TestFullExampleFunction · 0.85

Calls 5

servicesFunction · 0.85
networksFunction · 0.85
configsFunction · 0.85
secretsFunction · 0.85
volumesFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…