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

Function getExtras

cli/compose/loader/loader.go:438–449  ·  view source on GitHub ↗
(dict map[string]any)

Source from the content-addressed store, hash-verified

436}
437
438func getExtras(dict map[string]any) map[string]any {
439 extras := map[string]any{}
440 for key, value := range dict {
441 if strings.HasPrefix(key, "x-") {
442 extras[key] = value
443 }
444 }
445 if len(extras) == 0 {
446 return nil
447 }
448 return extras
449}
450
451func updateEnvironment(environment map[string]*string, vars map[string]*string, lookupEnv template.Mapping) {
452 for k, v := range vars {

Callers 3

loadSectionsFunction · 0.85
LoadServiceFunction · 0.85
loadExtrasFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…