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

Function sliceToMap

cli/compose/loader/merge.go:225–231  ·  view source on GitHub ↗
(tomap tomapFn, v reflect.Value)

Source from the content-addressed store, hash-verified

223}
224
225func sliceToMap(tomap tomapFn, v reflect.Value) (map[any]any, error) {
226 // check if valid
227 if !v.IsValid() {
228 return nil, fmt.Errorf("invalid value : %+v", v)
229 }
230 return tomap(v.Interface())
231}
232
233func mergeLoggingConfig(dst, src reflect.Value) error {
234 dstDriver := dst.Elem().FieldByName("Driver").String()

Callers 1

mergeSliceFunction · 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…